1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

Fix task names for --list and --list-all

Task names should not be overrided by `label`.
This commit is contained in:
Ivan Elfimov 2022-09-30 19:02:50 +04:00
parent 5d22cf4327
commit 122c3f083e

View File

@ -44,7 +44,7 @@ func (e *Executor) printTasks(listAll bool) {
// Format in tab-separated columns with a tab stop of 8.
w := tabwriter.NewWriter(e.Stdout, 0, 8, 0, '\t', 0)
for _, task := range tasks {
fmt.Fprintf(w, "* %s: \t%s\n", task.Name(), task.Desc)
fmt.Fprintf(w, "* %s: \t%s\n", task.Task, task.Desc)
}
w.Flush()
}