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

remove deprecated set keyword

This commit is contained in:
Andrey Nering
2017-09-16 14:05:07 -03:00
parent c295a1998a
commit 48bf09da21
7 changed files with 7 additions and 100 deletions

View File

@@ -326,21 +326,6 @@ DEV_MODE: production
GIT_COMMIT: {sh: git log -n 1 --format=%h}
```
> NOTE: It's also possible setting a variable globally using `set` attribute
in task, but this is deprecated:
```yml
build:
deps: [set-message]
cmds:
- echo "Message: {{.MESSAGE}}"
set-message:
cmds:
- echo "This is an important message"
set: MESSAGE
```
#### Dynamic variables
The below syntax (`sh:` prop in a variable) is considered a dynamic variable.