github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/command/job.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type JobCommand struct { 10 Meta 11 } 12 13 func (f *JobCommand) Help() string { 14 helpText := ` 15 Usage: 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 41 func (f *JobCommand) Synopsis() string { 42 return "Interact with jobs" 43 } 44 45 func (f *JobCommand) Name() string { return "job" } 46 47 func (f *JobCommand) Run(args []string) int { 48 return cli.RunResultHelp 49 }