fmt: clean up some stuff
Jes Olson j3s@c3f.net
Tue, 22 Nov 2022 22:56:38 -0800
2 files changed,
4 insertions(+),
4 deletions(-)
M
main.go
→
main.go
@@ -16,9 +16,9 @@ func printUsageExit() {
fmt.Printf(`usage: zoa <command> [arguments] commands: - fmt TODO - run <posix shell script> - execute given zoa script - version - print zoa version + fmt <path to script> - auto-format your shell scripts + run <path to script> - run the given script with zoa + version - print zoa version examples: zoa run main
M
shell/shell.go
→
shell/shell.go
@@ -72,7 +72,7 @@ syntax.KeepComments(true)(p)
syntax.Variant(syntax.LangPOSIX)(p) node, err := p.Parse(f, "") if err != nil { - return + log.Fatal(err) } var writeBuf bytes.Buffer syntax.NewPrinter().Print(&writeBuf, node)