mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
fix: ensure that calls to other tasks can be silenced (#680)
This commit is contained in:
committed by
Andrey Nering
parent
f0e9751f7e
commit
9a406f5998
50
testdata/silent/Taskfile.yml
vendored
Normal file
50
testdata/silent/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
version: '3'
|
||||
|
||||
tasks:
|
||||
silent:
|
||||
desc: "silent"
|
||||
silent: true
|
||||
cmds:
|
||||
- exit 0
|
||||
chatty:
|
||||
desc: "chatty"
|
||||
silent: false
|
||||
cmds:
|
||||
- exit 0
|
||||
|
||||
# Test combinations of silent and chatty tasks
|
||||
task-test-silent-calls-chatty-non-silenced:
|
||||
silent: true
|
||||
cmds:
|
||||
- task: chatty
|
||||
|
||||
task-test-silent-calls-chatty-silenced:
|
||||
silent: true
|
||||
cmds:
|
||||
- task: chatty
|
||||
silent: true
|
||||
|
||||
task-test-no-cmds-calls-chatty-silenced:
|
||||
silent: false
|
||||
cmds:
|
||||
- task: chatty
|
||||
silent: true
|
||||
|
||||
task-test-chatty-calls-chatty-non-silenced:
|
||||
silent: false
|
||||
cmds:
|
||||
- cmd: exit 0
|
||||
- task: chatty
|
||||
|
||||
task-test-chatty-calls-chatty-silenced:
|
||||
silent: false
|
||||
cmds:
|
||||
- cmd: exit 0
|
||||
- task: chatty
|
||||
silent: true
|
||||
|
||||
task-test-chatty-calls-silenced-cmd:
|
||||
silent: false
|
||||
cmds:
|
||||
- cmd: exit 0
|
||||
silent: true
|
Reference in New Issue
Block a user