Update .gitignore, make dumps add extension

This commit is contained in:
kayos@tcp.direct 2022-12-04 13:51:47 -08:00
parent 6cc73be953
commit 7a1c8f13aa
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
3 changed files with 31 additions and 10 deletions

28
.gitignore vendored
View File

@ -1,7 +1,29 @@
# art n' stuff
assets/
# jebrains
.idea
*.unused
*.toml
# nano
*.swp
*.test
*.save
# misc
*.unused
*.test
# config
*.toml
# dumped configs
*.json
# vendor stuff
vendor/**/*_test.go
vendor/**/*.mod
vendor/**/*.sum
vendor/**/*.png
vendor/**/*.svg
# build
ziggs

View File

@ -303,7 +303,7 @@ func cmdDump(br *ziggy.Bridge, args []string) error {
if js, err := json.Marshal(target); err != nil {
return err
} else {
return os.WriteFile(name, js, 0o666)
return os.WriteFile(name+".json", js, 0o666)
}
}

View File

@ -158,12 +158,11 @@ func printUsage() {
if len(version) < 8 {
version = "DEVEL"
}
println("---> " + common.Title + " <---")
println("->build " + version[:5] + "<-")
println("Usage\n")
println("-c <config.toml> - Specify config file")
println("--nocolor - disable color and banner ")
println("--genconfig - write default config to 'default.toml' then exit")
println("\t\t---> " + common.Title + " <---")
println("\t\t->build " + version[:5] + "<-\n")
println("-c <config.toml> \t Specify config file")
println("--nocolor \t\t disable color and banner ")
println("--genconfig \t\t write default config to 'default.toml' then exit")
os.Exit(0)
}