mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
42 lines
843 B
Go
42 lines
843 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package command
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/hashicorp/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
|
|
}
|