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:
parent
4b3cea3812
commit
fdbc130d8d
10
task.go
10
task.go
@ -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("")
|
||||
|
@ -4,7 +4,5 @@ First line followed by empty line
|
||||
|
||||
Last Line
|
||||
|
||||
dependencies:
|
||||
|
||||
commands:
|
||||
- exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user