1
0
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:
Samuel Krieg
2025-11-15 17:53:10 +01:00
committed by GitHub
parent 42ad618205
commit a927ffb31e

View File

@@ -614,6 +614,21 @@ tasks:
- ./deploy.sh - ./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` #### `requires`
- **Type**: `Requires` - **Type**: `Requires`