1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Add hability silent all tasks

By add `silent: true` at the root of the Taskfile.
This commit is contained in:
Andrey Nering
2019-12-07 21:44:09 -03:00
parent ec934ba3c0
commit 4bdfe64afb
6 changed files with 23 additions and 3 deletions

View File

@ -308,7 +308,7 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
}
return nil
case cmd.Cmd != "":
if e.Verbose || (!cmd.Silent && !t.Silent && !e.Silent) {
if e.Verbose || (!cmd.Silent && !t.Silent && !e.Taskfile.Silent && !e.Silent) {
e.Logger.Errf(cmd.Cmd)
}