main
main v0.9.0 v0.8.6 v0.8.5 v0.8.4 v0.8.3 v0.8.2

Directory

[edit]

Task Directory

The directory attribute can be used to define a file path in which the task should run.

Syntax

Do this by adding a dir: or directory: between the task name and the script.

## Tasks
### Build
directory: ./src
```
sh build.sh
```

Using the caller’s working directory

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
```