mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Fix task names for --list
and --list-all
Task names should not be overrided by `label`.
This commit is contained in:
2
help.go
2
help.go
@@ -44,7 +44,7 @@ func (e *Executor) printTasks(listAll bool) {
|
|||||||
// Format in tab-separated columns with a tab stop of 8.
|
// Format in tab-separated columns with a tab stop of 8.
|
||||||
w := tabwriter.NewWriter(e.Stdout, 0, 8, 0, '\t', 0)
|
w := tabwriter.NewWriter(e.Stdout, 0, 8, 0, '\t', 0)
|
||||||
for _, task := range tasks {
|
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()
|
w.Flush()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user