mirror of
https://github.com/go-task/task.git
synced 2026-08-29 10:08:27 +02:00
docs: add missing tasks.{task}.vars to schema reference (#2912)
This commit is contained in:
@@ -735,6 +735,24 @@ tasks:
|
||||
ref: .ALLOWED_ENVS
|
||||
cmds:
|
||||
- ./deploy.sh
|
||||
|
||||
#### [`vars`](#variable)
|
||||
|
||||
- **Type**: `map[string]Variable`
|
||||
- **Description**: Task level variables available to individual task
|
||||
|
||||
```yaml
|
||||
tasks:
|
||||
default:
|
||||
vars:
|
||||
# Simple values
|
||||
APP_NAME: myapp
|
||||
VERSION: 1.0.0
|
||||
DEBUG: true
|
||||
PORT: 8080
|
||||
FEATURES: [auth, logging]
|
||||
cmds:
|
||||
# …
|
||||
```
|
||||
|
||||
See [Prompting for missing variables interactively](/docs/guide#prompting-for-missing-variables-interactively)
|
||||
|
||||
Reference in New Issue
Block a user