mirror of
https://github.com/go-task/task.git
synced 2026-06-27 14:44:19 +00:00
feat: add silent for defer (#1879)
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
This commit is contained in:
6
testdata/deferred/Taskfile.yml
vendored
6
testdata/deferred/Taskfile.yml
vendored
@@ -1,12 +1,14 @@
|
||||
version: "3"
|
||||
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' } }
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user