small pixel drawing of a pufferfish zoa

fmt: clean up some stuff
Jes Olson j3s@c3f.net
Tue, 22 Nov 2022 22:56:38 -0800
commit

99cfefbc95c9fba60bcef86f888199b71e39bcfd

parent

8e2d9d183ac3bfc75b5dcbc9f3b557cf34fa38c7

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M main.gomain.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.goshell/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)