mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Possibility to call another task
This commit is contained in:
1
testdata/task_call/.gitignore
vendored
Normal file
1
testdata/task_call/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.txt
|
20
testdata/task_call/Taskfile.yml
vendored
Normal file
20
testdata/task_call/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
default:
|
||||
cmds:
|
||||
- ^set-foo
|
||||
- ^print
|
||||
- ^set-bar
|
||||
- ^print
|
||||
|
||||
print:
|
||||
cmds:
|
||||
- echo text > {{.FILE}}
|
||||
|
||||
set-foo:
|
||||
set: FILE
|
||||
cmds:
|
||||
- echo foo.txt
|
||||
|
||||
set-bar:
|
||||
set: FILE
|
||||
cmds:
|
||||
- echo bar.txt
|
Reference in New Issue
Block a user