From 11409ccf210ea85a8002a87872e812fe08b1cca8 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Sun, 24 Jul 2022 15:54:23 +0000 Subject: [PATCH] fix: list + silent flags shouldn't display internal tasks --- help.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.go b/help.go index c4b7ea47..85ce0ce7 100644 --- a/help.go +++ b/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, ":")) } }