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

add custom Cmd and Dep types

This commit is contained in:
Andrey Nering
2017-07-02 15:30:50 -03:00
parent a3bfa13670
commit 196d3cb13d
10 changed files with 245 additions and 53 deletions

1
testdata/params/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.txt

27
testdata/params/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
default:
deps:
- task: write-file
params:
CONTENT: Dependence1
FILE: dep1.txt
- task: write-file
params:
CONTENT: Dependence2
FILE: dep2.txt
cmds:
- task: write-file
params:
CONTENT: Hello
FILE: hello.txt
- task: write-file
params:
CONTENT: World
FILE: world.txt
- task: write-file
params:
CONTENT: "!"
FILE: exclamation.txt
write-file:
cmds:
- echo {{.CONTENT}} > {{.FILE}}