Files
nomad/command/config.go
2023-08-10 17:27:29 -05:00

42 lines
843 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package command
import (
"strings"
"github.com/mitchellh/cli"
)
type ConfigCommand struct {
Meta
}
func (f *ConfigCommand) Help() string {
helpText := `
Usage: nomad config <subcommand> [options] [args]
This command groups subcommands for interacting with configurations.
Users can validate configurations for the Nomad agent.
Validate configuration:
$ nomad config validate <config_path> [<config_path>...]
Please see the individual subcommand help for detailed usage information.
`
return strings.TrimSpace(helpText)
}
func (f *ConfigCommand) Synopsis() string {
return "Interact with configurations"
}
func (f *ConfigCommand) Name() string { return "config" }
func (f *ConfigCommand) Run(args []string) int {
return cli.RunResultHelp
}