feat: add json format output to cron:list command
This makes it easier to parse output in a machine-readable format - such as when interacting with cron tasks via jq for writing tests.
This commit is contained in:
@@ -14,12 +14,12 @@ import (
|
||||
)
|
||||
|
||||
type TemplateCommand struct {
|
||||
ID string
|
||||
App string
|
||||
Command string
|
||||
Schedule string
|
||||
AltCommand string
|
||||
LogFile string
|
||||
ID string `json:"id"`
|
||||
App string `json:"app"`
|
||||
Command string `json:"command"`
|
||||
Schedule string `json:"schedule"`
|
||||
AltCommand string `json:"-"`
|
||||
LogFile string `json:"-"`
|
||||
}
|
||||
|
||||
func (t TemplateCommand) CronCommand() string {
|
||||
|
||||
Reference in New Issue
Block a user