From 23c4adcef6149d5d9451d0cec854842e0933a5df Mon Sep 17 00:00:00 2001 From: jaedle Date: Mon, 4 Mar 2019 12:15:40 +0100 Subject: [PATCH] add spacing for tasks --- task.go | 6 +++++- testdata/summary/task-with-summary.txt | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/task.go b/task.go index 798c6bfe..51a5640d 100644 --- a/task.go +++ b/task.go @@ -65,7 +65,11 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error { } if e.Summary { - for _, call := range calls { + for i, call := range calls { + if i > 0 { + e.Logger.Outf("") + e.Logger.Outf("") + } summary.Print(e.Logger, e.Taskfile.Tasks[call.Task]) } return nil diff --git a/testdata/summary/task-with-summary.txt b/testdata/summary/task-with-summary.txt index 0c10fba2..80711300 100644 --- a/testdata/summary/task-with-summary.txt +++ b/testdata/summary/task-with-summary.txt @@ -12,6 +12,8 @@ commands: - echo 'task-with-summary was executed' - echo 'another command' - exit 0 + + task: other-task-with-summary summary of other-task-with-summary