mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
Allow template evaluation in parameters
When passing variables to a sub-task, allow template evaluation within the passed-on variables.
This commit is contained in:
committed by
Sindre Myren
parent
774ef61c2f
commit
2f9381065d
4
testdata/params/Taskfile.yml
vendored
4
testdata/params/Taskfile.yml
vendored
@ -1,4 +1,6 @@
|
||||
default:
|
||||
vars:
|
||||
SPANISH: ¡Holla mundo!
|
||||
deps:
|
||||
- task: write-file
|
||||
vars: {CONTENT: Dependence1, FILE: dep1.txt}
|
||||
@ -11,6 +13,8 @@ default:
|
||||
vars: {CONTENT: "$echo 'World'", FILE: world.txt}
|
||||
- task: write-file
|
||||
vars: {CONTENT: "!", FILE: exclamation.txt}
|
||||
- task: write-file
|
||||
vars: {CONTENT: "{{.SPANISH}}", FILE: spanish.txt}
|
||||
|
||||
write-file:
|
||||
cmds:
|
||||
|
Reference in New Issue
Block a user