mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
docs: add tasks.task.dir (#2489)
This commit is contained in:
@@ -614,6 +614,21 @@ tasks:
|
||||
- ./deploy.sh
|
||||
```
|
||||
|
||||
### `dir`
|
||||
|
||||
- **Type**: `string`
|
||||
- **Description**: The directory in which this task should run
|
||||
- **Default**: If the task is in the root Taskfile, the default `dir` is
|
||||
`ROOT_DIR`. For included Taskfiles, the default `dir` is the value specified in
|
||||
their respective `includes.*.dir` field (if any).
|
||||
|
||||
```yaml
|
||||
tasks:
|
||||
current-dir:
|
||||
dir: '{{.USER_WORKING_DIR}}'
|
||||
cmd: pwd
|
||||
```
|
||||
|
||||
#### `requires`
|
||||
|
||||
- **Type**: `Requires`
|
||||
|
||||
Reference in New Issue
Block a user