[tasks.run]
cmds = ["go run main.go {{.CLI_ARGS}}"]
➜ tsk run -- -a "oh man!"
ERROR
Unknown command "man!" for "daylog".
parseArgs joins the post--- args with a plain space (cmd/tsk/tsk.go:123), then the rendered cmd gets run as shell source (mvdan.cc/sh), so oh man! is re-split into two words. anything with a space (or a shell metachar) breaks.
should shell-quote each arg when joining so {{.CLI_ARGS}} round-trips. workaround for now is nesting quotes: tsk run -- -a "'oh man!'".
parseArgsjoins the post---args with a plain space (cmd/tsk/tsk.go:123), then the rendered cmd gets run as shell source (mvdan.cc/sh), sooh man!is re-split into two words. anything with a space (or a shell metachar) breaks.should shell-quote each arg when joining so
{{.CLI_ARGS}}round-trips. workaround for now is nesting quotes:tsk run -- -a "'oh man!'".