mirror of
https://github.com/go-task/task.git
synced 2025-07-13 01:30:33 +02:00
add spacing for tasks
This commit is contained in:
6
task.go
6
task.go
@ -65,7 +65,11 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if e.Summary {
|
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])
|
summary.Print(e.Logger, e.Taskfile.Tasks[call.Task])
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
2
testdata/summary/task-with-summary.txt
vendored
2
testdata/summary/task-with-summary.txt
vendored
@ -12,6 +12,8 @@ commands:
|
|||||||
- echo 'task-with-summary was executed'
|
- echo 'task-with-summary was executed'
|
||||||
- echo 'another command'
|
- echo 'another command'
|
||||||
- exit 0
|
- exit 0
|
||||||
|
|
||||||
|
|
||||||
task: other-task-with-summary
|
task: other-task-with-summary
|
||||||
|
|
||||||
summary of other-task-with-summary
|
summary of other-task-with-summary
|
||||||
|
Reference in New Issue
Block a user