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

Added environment to README

This commit is contained in:
Sascha Andres
2017-03-06 13:55:03 +01:00
parent 2e52e101be
commit 3291f60fe7

View File

@@ -42,6 +42,18 @@ task assets build
If Bash is available (Linux and Windows while on Git Bash), the commands will If Bash is available (Linux and Windows while on Git Bash), the commands will
run in Bash, otherwise will fallback to `cmd` (on Windows). run in Bash, otherwise will fallback to `cmd` (on Windows).
### Environment
You can specify environment variables that are added when running a command:
```yml
build:
cmds:
- echo $hallo
env:
hallo: welt
```
### Running task in another dir ### Running task in another dir
By default, tasks will be executed in the directory where the Taskfile is By default, tasks will be executed in the directory where the Taskfile is