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

add spacing for tasks

This commit is contained in:
jaedle 2019-03-04 12:15:40 +01:00
parent 808542bed0
commit 23c4adcef6
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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