1
0
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:
jaedle
2019-02-24 17:23:31 +01:00
parent a4a20d92a4
commit c82a7240bb
2 changed files with 7 additions and 3 deletions

View File

@@ -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)
}
}
}
}