1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

refactoring

This commit is contained in:
jaedle
2019-02-24 09:28:25 +01:00
parent c73ddc3552
commit 9be7521b83

View File

@@ -64,7 +64,7 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error {
}
if e.Details {
displayTaskDetails(e, calls[0].Task)
e.displayTaskDetails(calls[0].Task)
return nil
}
@@ -80,7 +80,7 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error {
return nil
}
func displayTaskDetails(e *Executor, task string) {
func (e *Executor) displayTaskDetails(task string) {
if e.Taskfile.Tasks[task].Details == "" {
e.Logger.Errf("task: There is no detailed description for task: %s", task)
} else {