You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/cmd/commands/config/config.go

43 lines
1.0 KiB

package config
import (
"github.com/hashicorp/boundary/internal/cmd/base"
"github.com/mitchellh/cli"
)
var _ cli.Command = (*Command)(nil)
type Command struct {
*base.Command
}
func (c *Command) Synopsis() string {
return "Manage resources related to Boundary's local configuration"
}
func (c *Command) Help() string {
return base.WrapForHelpText([]string{
"Usage: boundary config <subcommand> [options] [args]",
"",
" This command groups subcommands for operators interacting with Boundary's config files. Here are a few examples of config commands:",
"",
" Encrypt sensitive values in a config file:",
"",
" $ boundary config encrypt config.hcl",
"",
" Decrypt sensitive values in a config file:",
"",
" $ boundary config decrypt config.hcl",
"",
" Read a stored token out:",
"",
" $ boundary config get-token",
"",
" Please see the individual subcommand help for detailed usage information.",
})
}
func (c *Command) Run(args []string) int {
return cli.RunResultHelp
}