mirror of
https://github.com/go-task/task.git
synced 2025-03-19 21:17:46 +02:00
do not show empty dependencies
This commit is contained in:
parent
4b3cea3812
commit
fdbc130d8d
10
task.go
10
task.go
@ -95,11 +95,13 @@ func (e *Executor) printTaskDetails(task string) {
|
|||||||
Logger := e.Logger
|
Logger := e.Logger
|
||||||
displayTaskDetailedDescription(s, Logger)
|
displayTaskDetailedDescription(s, Logger)
|
||||||
|
|
||||||
e.Logger.Outf("")
|
if len(t.Deps) > 0 {
|
||||||
e.Logger.Outf("dependencies:")
|
e.Logger.Outf("")
|
||||||
|
e.Logger.Outf("dependencies:")
|
||||||
|
|
||||||
for _, d := range t.Deps {
|
for _, d := range t.Deps {
|
||||||
e.Logger.Outf(" - %s", d.Task)
|
e.Logger.Outf(" - %s", d.Task)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e.Logger.Outf("")
|
e.Logger.Outf("")
|
||||||
|
@ -4,7 +4,5 @@ First line followed by empty line
|
|||||||
|
|
||||||
Last Line
|
Last Line
|
||||||
|
|
||||||
dependencies:
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
- exit 0
|
- exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user