mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
docs: specify that variable declaration order is respected (#1510)
This commit is contained in:
@@ -214,6 +214,19 @@ vars:
|
||||
|
||||
:::
|
||||
|
||||
:::info
|
||||
|
||||
In a variables map, variables defined later may reference variables defined
|
||||
earlier (declaration order is respected):
|
||||
|
||||
```yaml
|
||||
vars:
|
||||
FIRST_VAR: "hello"
|
||||
SECOND_VAR: "{{.FIRST_VAR}} world"
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
### Task
|
||||
|
||||
| Attribute | Type | Default | Description |
|
||||
|
Reference in New Issue
Block a user