github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/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 List evaluations: 23 24 $ nomad eval list 25 26 Examine an evaluations status: 27 28 $ nomad eval status <eval-id> 29 30 Delete evaluations: 31 32 $ nomad eval delete <eval-id> 33 34 Please see the individual subcommand help for detailed usage information. 35 ` 36 37 return strings.TrimSpace(helpText) 38 } 39 40 func (f *EvalCommand) Synopsis() string { 41 return "Interact with evaluations" 42 } 43 44 func (f *EvalCommand) Name() string { return "eval" } 45 46 func (f *EvalCommand) Run(_ []string) int { return cli.RunResultHelp }