refactor with support for --list and --list-all

This commit is contained in:
ardnew
2022-03-21 12:59:25 -05:00
parent 978a6e5ecb
commit 9897f4b527
2 changed files with 21 additions and 22 deletions

View File

@@ -158,10 +158,12 @@ func main() {
OutputStyle: output,
}
if list && silent {
e.PrintTaskNames()
if (list || listAll) && silent {
e.ListTaskNames(listAll)
return
}
if err := e.Setup(); err != nil {
log.Fatal(err)
}