snowe
snowe
TTask
Created by snowe on 10/9/2024 in #help
Does precondition support go templates?
ok, that did work. thank you. had to use single quote.
7 replies
TTask
Created by snowe on 10/9/2024 in #help
Does precondition support go templates?
wait. nope didn't change the right file 🤦🏽‍♂️
7 replies
TTask
Created by snowe on 10/9/2024 in #help
Does precondition support go templates?
I had tried that and it fails the same.
7 replies
TTask
Created by snowe on 10/9/2024 in #help
Does precondition support go templates?
I would expect this to work:
version: '3'

tasks:
default:
cmds:
- echo "{{.CLI_ARGS}}"
preconditions:
- {{eq .CLI_ARGS "hi there"}}
version: '3'

tasks:
default:
cmds:
- echo "{{.CLI_ARGS}}"
preconditions:
- {{eq .CLI_ARGS "hi there"}}
but I get the error:
❯ task
err: cannot unmarshal !!map into string
file: /Users/.../Taskfile.yml:8:9
6 | - echo "{{.CLI_ARGS}}"
7 | preconditions:
❯ task
err: cannot unmarshal !!map into string
file: /Users/.../Taskfile.yml:8:9
6 | - echo "{{.CLI_ARGS}}"
7 | preconditions:
7 replies
TTask
Created by snowe on 10/9/2024 in #help
Does precondition support go templates?
not sure why discord isn't showing my post text... I said "It seems that preconditions don't support the templates, or if they do, I'm unable to figure it out"
7 replies