mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Write tests for variables
This commit is contained in:
1
testdata/vars/.gitignore
vendored
Normal file
1
testdata/vars/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.txt
|
12
testdata/vars/Taskfile.yml
vendored
Normal file
12
testdata/vars/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
default:
|
||||
deps: [hello]
|
||||
|
||||
hello:
|
||||
cmds:
|
||||
- echo {{.FOO}} > foo.txt
|
||||
- echo {{.BAR}} > bar.txt
|
||||
- echo {{.FOO2}} > foo2.txt
|
||||
- echo {{.BAR2}} > bar2.txt
|
||||
vars:
|
||||
FOO: foo
|
||||
BAR: $echo bar
|
2
testdata/vars/Taskvars.yml
vendored
Normal file
2
testdata/vars/Taskvars.yml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
FOO2: foo2
|
||||
BAR2: $echo bar2
|
Reference in New Issue
Block a user