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

use YAML for dynamix variable instead of $ prefix

$ prefix still works but is now deprecated

before:

    VAR: $echo var

after:

    VAR:
      sh: echo bar

closes #46
This commit is contained in:
Andrey Nering
2017-07-15 15:28:59 -03:00
parent d22b3b0d88
commit e8e914b11c
6 changed files with 89 additions and 22 deletions

View File

@@ -6,12 +6,16 @@ hello:
cmds:
- echo {{.FOO}} > foo.txt
- echo {{.BAR}} > bar.txt
- echo {{.BAZ}} > baz.txt
- echo {{.FOO2}} > foo2.txt
- echo {{.BAR2}} > bar2.txt
- echo {{.BAZ2}} > baz2.txt
- echo {{.EQUAL}} > equal.txt
vars:
FOO: foo
BAR: $echo bar
BAZ:
sh: echo baz
set-equal:
set: EQUAL

View File

@@ -1,2 +1,4 @@
FOO2: foo2
BAR2: $echo bar2
BAZ2:
sh: echo baz2