1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

add unit test for spacing between summaries

This commit is contained in:
jaedle
2019-03-04 12:46:02 +01:00
parent 4fd82ab222
commit 1025c2e3a1
2 changed files with 49 additions and 45 deletions

View File

@ -69,14 +69,15 @@ func printNoDescriptionOrSummary(l *logger.Logger) {
}
func printTaskDependencies(l *logger.Logger, t *taskfile.Task) {
hasDependencies := len(t.Deps) > 0
if hasDependencies {
l.Outf("")
l.Outf("dependencies:")
if len(t.Deps) == 0 {
return
}
for _, d := range t.Deps {
l.Outf(" - %s", d.Task)
}
l.Outf("")
l.Outf("dependencies:")
for _, d := range t.Deps {
l.Outf(" - %s", d.Task)
}
}