mirror of
https://github.com/go-task/task.git
synced 2025-01-04 03:48:02 +02:00
09c9d55695
- Remove ^task syntax from `defer` - Support task call syntax in defer
13 lines
243 B
YAML
13 lines
243 B
YAML
version: "3"
|
|
|
|
tasks:
|
|
task-1:
|
|
- echo 'task-1 ran {{.PARAM}}'
|
|
|
|
task-2:
|
|
- defer: { task: "task-1", vars: { PARAM: "successfully" } }
|
|
- defer: echo 'echo ran'
|
|
- defer: echo 'failing' && exit 2
|
|
- echo 'cmd ran'
|
|
- exit 1
|