mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
refactoring
This commit is contained in:
@ -81,8 +81,11 @@ func printTaskDependencies(l *logger.Logger, t *taskfile.Task) {
|
||||
}
|
||||
|
||||
func printTaskCommands(l *logger.Logger, t *taskfile.Task) {
|
||||
hasCommands := len(t.Cmds) > 0
|
||||
if hasCommands {
|
||||
noCommands := len(t.Cmds) == 0
|
||||
if noCommands {
|
||||
return
|
||||
}
|
||||
|
||||
l.Outf("")
|
||||
l.Outf("commands:")
|
||||
for _, c := range t.Cmds {
|
||||
@ -94,4 +97,3 @@ func printTaskCommands(l *logger.Logger, t *taskfile.Task) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user