1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

Merge pull request #919 from go-task/include-alises-in-list-when-silent

feat: include aliases in --list --silent output
This commit is contained in:
Andrey Nering
2022-11-12 10:16:38 -03:00
committed by GitHub

View File

@ -58,6 +58,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