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:
10
README.md
10
README.md
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user