Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions website/src/docs/reference/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading