mirror of
https://github.com/go-task/task.git
synced 2026-07-07 14:09:11 +00:00
refactor with support for --list and --list-all
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user