mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
fix: list + silent flags shouldn't display internal tasks
This commit is contained in:
2
help.go
2
help.go
@@ -94,7 +94,7 @@ func (e *Executor) ListTaskNames(allTasks bool) {
|
||||
// create a string slice from all map values (*taskfile.Task)
|
||||
s := make([]string, 0, len(e.Taskfile.Tasks))
|
||||
for _, t := range e.Taskfile.Tasks {
|
||||
if allTasks || t.Desc != "" {
|
||||
if (allTasks || t.Desc != "") && !t.Internal {
|
||||
s = append(s, strings.TrimRight(t.Task, ":"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user