1
0
mirror of https://github.com/go-task/task.git synced 2025-02-03 13:22:11 +02:00
task/testdata/deferred/Taskfile.yml
Danilo Bürger 4595c1e32a
feat: add silent for defer (#1879)
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2024-12-07 16:16:27 +01:00

15 lines
341 B
YAML

version: '3'
tasks:
task-1:
- echo 'task-1 ran {{.PARAM}}'
task-2:
- defer: { task: 'task-1', vars: { PARAM: 'successfully' } }
- defer: { task: 'task-1', vars: { PARAM: 'successfully' }, silent: true }
- defer: echo 'echo ran'
silent: true
- defer: echo 'failing' && exit 2
- echo 'cmd ran'
- exit 1