Description
I would like to dynamically hide some tasks, depending on some variable's value. But it seems that the result is always a string - which is rejected by the task's internal field - even if the resulting value is a bool.
err: cannot unmarshal !!str `{{ eq (...` into bool
Version
3.48.0
Operating system
macOS
Experiments Enabled
No response
Example Taskfile
version: 3
tasks:
foo: # this task should only be visible if FOO is not empty
desc: Print FOO
cmds:
- 'echo {{ .FOO }}'
internal: '{{ eq ( .FOO | default "" ) "" }}'
Description
I would like to dynamically hide some tasks, depending on some variable's value. But it seems that the result is always a string - which is rejected by the task's
internalfield - even if the resulting value is a bool.Version
3.48.0
Operating system
macOS
Experiments Enabled
No response
Example Taskfile