mirror of
https://github.com/go-task/task.git
synced 2025-11-25 22:32:55 +02:00
print task in command section
This commit is contained in:
@@ -24,7 +24,11 @@ func printTaskCommands(cmds []*taskfile.Cmd, logger *logger.Logger) {
|
||||
logger.Outf("")
|
||||
logger.Outf("commands:")
|
||||
for _, c := range cmds {
|
||||
logger.Outf(" - %s", c.Cmd)
|
||||
if c.Cmd != "" {
|
||||
logger.Outf(" - %s", c.Cmd)
|
||||
} else {
|
||||
logger.Outf(" - Task: %s", c.Task)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user