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:
committed by
GitHub
parent
09c9094a6b
commit
1b30c9dbca
2
task.go
2
task.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user