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:
1
testdata/params/.gitignore
vendored
Normal file
1
testdata/params/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.txt
|
27
testdata/params/Taskfile.yml
vendored
Normal file
27
testdata/params/Taskfile.yml
vendored
Normal 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}}
|
Reference in New Issue
Block a user