feat: add ability to list global cron tasks

Closes #7732
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-09-14 04:38:19 -04:00
1 parent 8b9b658951
commit 7adeee7086
5 files changed
+79 -9

No files matched your search

@@ -20,9 +20,13 @@ func main() {
switch subcommand {
case "list":
args := flag.NewFlagSet("cron:list", flag.ExitOnError)
global := args.Bool("global", false, "--global: set a global property")
format := args.String("format", "stdout", "format: [ stdout | json ]")
args.Parse(os.Args[2:])
appName := args.Arg(0)
if *global {
appName = "--global"
}
err = cron.CommandList(appName, *format)
case "report":
args := flag.NewFlagSet("cron:report", flag.ExitOnError)