1
0
mirror of https://github.com/go-task/task.git synced 2025-01-28 05:36:18 +02:00

Added "passing variables to dependencies" (#85)

This commit is contained in:
atar-axis 2018-01-11 13:10:12 +01:00 committed by Andrey Nering
parent e23a6dc9f1
commit 6f74c2d823

View File

@ -175,6 +175,24 @@ css:
If there are more than one dependency, they always run in parallel for better
performance.
If you want to pass information to dependencies, you can do that the same manner as you would to [call another task](#calling-another-task):
```yml
default:
deps:
- task: echo_sth
vars: {TEXT: "before 1"}
- task: echo_sth
vars: {TEXT: "before 2"}
cmds:
- echo "after"
echo_sth:
cmds:
- echo {{.TEXT}}
```
### Calling another task
When a task has many dependencies, they are executed concurrently. This will