Skip to content

Commit 7c6d28a

Browse files
committed
docs: add tasks.task.dir
1 parent 2b713f5 commit 7c6d28a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

website/src/docs/reference/schema.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,21 @@ tasks:
614614
- ./deploy.sh
615615
```
616616

617+
### `dir`
618+
619+
- **Type**: `string`
620+
- **Description**: The directory in which this task should run
621+
- **Default**: If the task is in the root Taskfile, the default `dir` is
622+
`ROOT_DIR`. For included Taskfiles, the default `dir` is the value specified in
623+
their respective `includes.*.dir` field (if any).
624+
625+
```yaml
626+
tasks:
627+
current-dir:
628+
dir: '{{.USER_WORKING_DIR}}'
629+
cmd: pwd
630+
```
631+
617632
#### `requires`
618633

619634
- **Type**: `Requires`

0 commit comments

Comments
 (0)