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

do not show empty dependencies

This commit is contained in:
jaedle 2019-02-24 14:55:04 +01:00
parent 4b3cea3812
commit fdbc130d8d
2 changed files with 6 additions and 6 deletions

10
task.go
View File

@ -95,11 +95,13 @@ func (e *Executor) printTaskDetails(task string) {
Logger := e.Logger
displayTaskDetailedDescription(s, Logger)
e.Logger.Outf("")
e.Logger.Outf("dependencies:")
if len(t.Deps) > 0 {
e.Logger.Outf("")
e.Logger.Outf("dependencies:")
for _, d := range t.Deps {
e.Logger.Outf(" - %s", d.Task)
for _, d := range t.Deps {
e.Logger.Outf(" - %s", d.Task)
}
}
e.Logger.Outf("")

View File

@ -4,7 +4,5 @@ First line followed by empty line
Last Line
dependencies:
commands:
- exit 0