1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

Improve documentation for included Taskfiles

Follow-up of #292
This commit is contained in:
Andrey Nering 2020-02-16 11:21:06 -03:00
parent b2a56161bb
commit 3f80a3b39e

View File

@ -124,6 +124,21 @@ namespace. So, you'd call `task docs:serve` to run the `serve` task from
`documentation/Taskfile.yml` or `task docker:build` to run the `build` task
from the `DockerTasks.yml` file.
### Directory of included Taskfile
By default, included Taskfile's tasks are ran in the current directory, even
if the Taskfile is in another directory, but you can force its tasks to run
in another directory by using this alternative syntax:
```yaml
version: '3'
includes:
docs:
taskfile: ./docs/Taskfile.yml
dir: ./docs
```
> The included Taskfiles must be using the same schema version the main
> Taskfile uses.