github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/command/config.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type ConfigCommand struct { 10 Meta 11 } 12 13 func (f *ConfigCommand) Help() string { 14 helpText := ` 15 Usage: nomad config <subcommand> [options] [args] 16 17 This command groups subcommands for interacting with configurations. 18 Users can validate configurations for the Nomad agent. 19 20 Validate configuration: 21 22 $ nomad config validate <config_path> [<config_path>...] 23 24 Please see the individual subcommand help for detailed usage information. 25 ` 26 27 return strings.TrimSpace(helpText) 28 } 29 30 func (f *ConfigCommand) Synopsis() string { 31 return "Interact with configurations" 32 } 33 34 func (f *ConfigCommand) Name() string { return "config" } 35 36 func (f *ConfigCommand) Run(args []string) int { 37 return cli.RunResultHelp 38 }