1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

Merge pull request #588 from jespino/issue-533

Adding task started and task finished in the verbose otput
This commit is contained in:
Andrey Nering 2021-11-28 16:14:56 -03:00 committed by GitHub
commit a15b66e003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, `task: "%s" started`, call.Task)
if err := e.runDeps(ctx, t); err != nil {
return err
}
@ -355,6 +356,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
return &taskRunError{t.Task, err}
}
}
e.Logger.VerboseErrf(logger.Magenta, `task: "%s" finished`, call.Task)
return nil
})
}