For a task, is the list of files specified in sources available for commands so it can be used as a variable?
I have a script that that I would like to pass the list of sources available to:
version: '3'
tasks:
test:
cmds:
- echo {{.sources}}
- ./test/shellcheck.sh {{.sources}}
sources:
- *.sh
Alternatively if it was possible to use vars for sources:
version: '3'
tasks:
test:
cmds:
- echo {{.sources}}
- ./test/shellcheck.sh {{.sources}}
vars:
SCRIPTS:
sh: find . -iname '*.sh' -not -path './cygwin/*' | xargs echo
sources:
- {{.BASH_SCRIPTS}}
For a task, is the list of files specified in sources available for commands so it can be used as a variable?
I have a script that that I would like to pass the list of sources available to:
Alternatively if it was possible to use vars for sources: