mirror of
https://github.com/go-task/task.git
synced 2025-02-13 13:59:32 +02:00
refactoring
This commit is contained in:
parent
33d4ad4d84
commit
9e9ffeb5d5
9
task.go
9
task.go
@ -96,10 +96,13 @@ func (e *Executor) printTaskSummary(task string) {
|
||||
printTaskDependencies(t.Deps, e.Logger)
|
||||
|
||||
e.Logger.Outf("")
|
||||
e.Logger.Outf("commands:")
|
||||
printCommands(t.Cmds, e.Logger)
|
||||
}
|
||||
|
||||
for _, c := range t.Cmds {
|
||||
e.Logger.Outf(" - %s", c.Cmd)
|
||||
func printCommands(cmds []*taskfile.Cmd, logger *logger.Logger) {
|
||||
logger.Outf("commands:")
|
||||
for _, c := range cmds {
|
||||
logger.Outf(" - %s", c.Cmd)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user