1
0
mirror of https://github.com/go-task/task.git synced 2025-03-21 21:27:07 +02:00

Adding task started and task finished in the verbose otput

This commit is contained in:
Jesús Espino 2021-10-16 21:12:26 +02:00
parent a3b5b89930
commit 8a09d044c7

View File

@ -310,6 +310,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
defer release()
return e.startExecution(ctx, t, func(ctx context.Context) error {
e.Logger.VerboseErrf(logger.Magenta, `started task: '%s'`, call.Task)
if err := e.runDeps(ctx, t); err != nil {
return err
}
@ -351,6 +352,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
return &taskRunError{t.Task, err}
}
}
e.Logger.VerboseErrf(logger.Magenta, `finished task: '%s'`, call.Task)
return nil
})
}