Skip to content

Commit a15b66e

Browse files
authored
Merge pull request #588 from jespino/issue-533
Adding task started and task finished in the verbose otput
2 parents a441b4b + 6900002 commit a15b66e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

task.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
310310
defer release()
311311

312312
return e.startExecution(ctx, t, func(ctx context.Context) error {
313+
e.Logger.VerboseErrf(logger.Magenta, `task: "%s" started`, call.Task)
313314
if err := e.runDeps(ctx, t); err != nil {
314315
return err
315316
}
@@ -355,6 +356,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
355356
return &taskRunError{t.Task, err}
356357
}
357358
}
359+
e.Logger.VerboseErrf(logger.Magenta, `task: "%s" finished`, call.Task)
358360
return nil
359361
})
360362
}

0 commit comments

Comments
 (0)