1
0
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:
Mads H. Danquah
2023-04-27 08:23:45 +02:00
committed by Andrey Nering
parent f0e9751f7e
commit 9a406f5998
7 changed files with 142 additions and 13 deletions

50
testdata/silent/Taskfile.yml vendored Normal file
View 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