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:
parent
808542bed0
commit
23c4adcef6
6
task.go
6
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
|
||||
|
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 'another command'
|
||||
- exit 0
|
||||
|
||||
|
||||
task: other-task-with-summary
|
||||
|
||||
summary of other-task-with-summary
|
||||
|
Loading…
x
Reference in New Issue
Block a user