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