Requires vars and CLI_ARGS cohabitation ?
I would like to simplify the usage of task and vars when using the cli
When calling
task
without args, requires is not triggerd. Without the fallback to empty string, I get an error with index out of range: 0
which make requires totaly useless.
I know CLI_ARGS
is not used to manage task variables and instead I should use task MY_ARG=my_value
but i believe task is very close to be used as a regular CLI.2 Replies
Hi @Nargit. You may be interested in https://github.com/go-task/task/issues/2139
GitHub
Split CLI args experiment · Issue #2139 · go-task/task
Description When the CLI_ARGS variable was first introduced, Task only had string variables, so the variable was populated with a single string with shell quoted values. Since then we have introduc...
not sure how this could help