1package command
2
3import (
4	"strings"
5
6	"github.com/mitchellh/cli"
7)
8
9type JobCommand struct {
10	Meta
11}
12
13func (f *JobCommand) Help() string {
14	helpText := `
15Usage: nomad job <subcommand> [options] [args]
16
17  This command groups subcommands for interacting with jobs.
18
19  Run a new job or update an existing job:
20
21      $ nomad job run <path>
22
23  Plan the run of a job to determine what changes would occur:
24
25      $ nomad job plan <path>
26
27  Stop a running job:
28
29      $ nomad job stop <name>
30
31  Examine the status of a running job:
32
33      $ nomad job status <name>
34
35  Please see the individual subcommand help for detailed usage information.
36`
37
38	return strings.TrimSpace(helpText)
39}
40
41func (f *JobCommand) Synopsis() string {
42	return "Interact with jobs"
43}
44
45func (f *JobCommand) Name() string { return "job" }
46
47func (f *JobCommand) Run(args []string) int {
48	return cli.RunResultHelp
49}
50