| title | Directory | ||||||
|---|---|---|---|---|---|---|---|
| description | |||||||
| linkTitle | Directory | ||||||
| menu |
|
The directory attribute can be used to define a file path in which the task should run.
Do this by adding a dir: or directory: between the task name and the script.
## Tasks
### Build
directory: ./src
```
sh build.sh
```By default, tasks run in the directory where the README file is located, even if xc is invoked from a subdirectory. Setting directory to $PWD will instead run the task in the directory where xc was invoked.
## Tasks
### List
directory: $PWD
```
ls
```