use cobra long messages instead of crowding the short messages with too much info

This commit is contained in:
Kenneth Bingham 2025-01-28 15:05:35 -05:00
parent f0f51057d6
commit 9b067d2266
No known key found for this signature in database
GPG Key ID: 31709281860130B6
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,8 @@ type configGetCommand struct {
func newConfigGetCommand() *configGetCommand {
cmd := &cobra.Command{
Use: "get <configName>",
Short: "Get a value from the environment config. Run 'zrok status' to list valid config names and their current values.",
Short: "Get a value from the environment config",
Long: "Get a value from the environment config. Use 'zrok status' to list available configuration names and current values",
Args: cobra.ExactArgs(1),
}
command := &configGetCommand{cmd: cmd}

View File

@ -22,6 +22,7 @@ func newConfigSetCommand() *configSetCommand {
cmd := &cobra.Command{
Use: "set <configName> <value>",
Short: "Set a value into the environment config",
Long: "Set a value into the environment config. Use 'zrok status' to list available configuration names and current values",
Args: cobra.ExactArgs(2),
}
command := &configSetCommand{cmd: cmd}