open-nomad/command/job_periodic.go

37 lines
722 B
Go
Raw Normal View History

package command
import (
"strings"
2019-04-12 19:12:42 +00:00
"github.com/mitchellh/cli"
)
type JobPeriodicCommand struct {
Meta
}
func (f *JobPeriodicCommand) Name() string { return "periodic" }
func (f *JobPeriodicCommand) Run(args []string) int {
return cli.RunResultHelp
}
func (f *JobPeriodicCommand) Synopsis() string {
return "Interact with periodic jobs"
}
func (f *JobPeriodicCommand) Help() string {
helpText := `
Usage: nomad job periodic <subcommand> [options] [args]
This command groups subcommands for interacting with periodic jobs.
Force a periodic job:
$ nomad job periodic force <job_id>
Please see the individual subcommand help for detailed usage information.
`
return strings.TrimSpace(helpText)
}