open-nomad/command/job_periodic.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
792 B
Go
Raw Permalink Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
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)
}