mirror of
https://github.com/go-task/task.git
synced 2025-11-27 22:38:20 +02:00
do not show empty dependencies
This commit is contained in:
2
task.go
2
task.go
@@ -95,12 +95,14 @@ func (e *Executor) printTaskDetails(task string) {
|
||||
Logger := e.Logger
|
||||
displayTaskDetailedDescription(s, Logger)
|
||||
|
||||
if len(t.Deps) > 0 {
|
||||
e.Logger.Outf("")
|
||||
e.Logger.Outf("dependencies:")
|
||||
|
||||
for _, d := range t.Deps {
|
||||
e.Logger.Outf(" - %s", d.Task)
|
||||
}
|
||||
}
|
||||
|
||||
e.Logger.Outf("")
|
||||
e.Logger.Outf("commands:")
|
||||
|
||||
@@ -4,7 +4,5 @@ First line followed by empty line
|
||||
|
||||
Last Line
|
||||
|
||||
dependencies:
|
||||
|
||||
commands:
|
||||
- exit 0
|
||||
|
||||
Reference in New Issue
Block a user