1package command
2
3import (
4	"strings"
5
6	"github.com/mitchellh/cli"
7)
8
9type EvalCommand struct {
10	Meta
11}
12
13func (f *EvalCommand) Help() string {
14	helpText := `
15Usage: 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
32func (f *EvalCommand) Synopsis() string {
33	return "Interact with evaluations"
34}
35
36func (f *EvalCommand) Name() string { return "eval" }
37
38func (f *EvalCommand) Run(args []string) int {
39	return cli.RunResultHelp
40}
41