1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

os specific Taskvars file

Now it's possible to have Taskfile_windows.yml or Taskvars_linux.yml
(and others).

Asked in a comment in #46
This commit is contained in:
Andrey Nering
2017-07-15 13:46:35 -03:00
parent b552cc2b12
commit ef2695974d
2 changed files with 21 additions and 4 deletions

View File

@@ -78,8 +78,8 @@ build:
### OS specific task
If you add a `Taskfile_{{GOOS}}` you can override or amend your taskfile based
on the operating system.
If you add a `Taskfile_{{GOOS}}.yml` you can override or amend your taskfile
based on the operating system.
Example:
@@ -99,7 +99,11 @@ build:
- echo "linux"
```
Will print out `linux` and not default
Will print out `linux` and not default.
It's also possible to have OS specific `Taskvars.yml` file, like
`Taskvars_windows.yml` or `Taskvars_darwin.yml`. See the
[variables section](#variables) below.
### Task directory