Update .gitignore, make dumps add extension
This commit is contained in:
parent
6cc73be953
commit
7a1c8f13aa
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue