github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/command/eval.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type EvalCommand struct { 10 Meta 11 } 12 13 func (f *EvalCommand) Help() string { 14 helpText := ` 15 Usage: nomad eval <subcommand> [options] [args] 16 17 This command groups subcommands for interacting with evaluations. Evaluations 18 are used to trigger a scheduling event. As such, evaluations are an internal 19 detail but can be useful for debugging placement failures when the cluster 20 does not have the resources to run a given job. 21 22 Examine an evaluations status: 23 24 $ nomad eval status <eval-id> 25 26 Please see the individual subcommand help for detailed usage information. 27 ` 28 29 return strings.TrimSpace(helpText) 30 } 31 32 func (f *EvalCommand) Synopsis() string { 33 return "Interact with evaluations" 34 } 35 36 func (f *EvalCommand) Name() string { return "eval" } 37 38 func (f *EvalCommand) Run(args []string) int { 39 return cli.RunResultHelp 40 }