mirror of
https://github.com/go-task/task.git
synced 2026-07-07 22:18:47 +00:00
feat: aliases
feat: add aliases to --list and --list-all flags feat: add aliases to --summary feat: enable aliases for included tasks tests: added alias unit tests
This commit is contained in:
3
help.go
3
help.go
@@ -44,8 +44,9 @@ func (e *Executor) printTasks(listAll bool) {
|
||||
// Format in tab-separated columns with a tab stop of 8.
|
||||
w := tabwriter.NewWriter(e.Stdout, 0, 8, 6, ' ', 0)
|
||||
for _, task := range tasks {
|
||||
taskNames := append([]string{task.Task}, task.Aliases...)
|
||||
e.Logger.FOutf(w, logger.Yellow, "* ")
|
||||
e.Logger.FOutf(w, logger.Green, task.Task)
|
||||
e.Logger.FOutf(w, logger.Green, strings.Join(taskNames, "|"))
|
||||
e.Logger.FOutf(w, logger.Default, ": \t%s", task.Desc)
|
||||
fmt.Fprint(w, "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user