1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

Make status checks respect task and global silent mode (#1107)

This commit is contained in:
Mads Høgstedt Danquah
2023-04-06 03:18:58 +02:00
committed by GitHub
parent 09c9094a6b
commit 1b30c9dbca
3 changed files with 50 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
}
if upToDate && preCondMet {
if !e.Silent {
if e.Verbose || (!t.Silent && !e.Taskfile.Silent && !e.Silent) {
e.Logger.Errf(logger.Magenta, `task: Task "%s" is up to date`, t.Name())
}
return nil