mirror of
https://github.com/go-task/task.git
synced 2025-02-13 13:59:32 +02:00
feat: include aliases in --list --silent output
This commit is contained in:
parent
fd71dfda6a
commit
3a4b347d50
3
help.go
3
help.go
@ -102,6 +102,9 @@ func (e *Executor) ListTaskNames(allTasks bool) {
|
||||
for _, t := range e.Taskfile.Tasks {
|
||||
if (allTasks || t.Desc != "") && !t.Internal {
|
||||
s = append(s, strings.TrimRight(t.Task, ":"))
|
||||
for _, alias := range t.Aliases {
|
||||
s = append(s, strings.TrimRight(alias, ":"))
|
||||
}
|
||||
}
|
||||
}
|
||||
// sort and print all task names
|
||||
|
Loading…
x
Reference in New Issue
Block a user