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:
parent
e23a6dc9f1
commit
6f74c2d823
18
README.md
18
README.md
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user