2023-04-10 15:36:59 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2019-04-12 18:56:02 +00:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
2019-04-12 19:12:42 +00:00
|
|
|
|
|
|
|
"github.com/mitchellh/cli"
|
2019-04-12 18:56:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|