From 9b067d22668868c67f3ddd3396da31b8ff1ad311 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Tue, 28 Jan 2025 15:05:35 -0500 Subject: [PATCH] use cobra long messages instead of crowding the short messages with too much info --- cmd/zrok/configGet.go | 3 ++- cmd/zrok/configSet.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/zrok/configGet.go b/cmd/zrok/configGet.go index 53145687..e095ca99 100644 --- a/cmd/zrok/configGet.go +++ b/cmd/zrok/configGet.go @@ -17,7 +17,8 @@ type configGetCommand struct { func newConfigGetCommand() *configGetCommand { cmd := &cobra.Command{ Use: "get ", - 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} diff --git a/cmd/zrok/configSet.go b/cmd/zrok/configSet.go index 44773fbf..49846c1c 100644 --- a/cmd/zrok/configSet.go +++ b/cmd/zrok/configSet.go @@ -22,6 +22,7 @@ func newConfigSetCommand() *configSetCommand { cmd := &cobra.Command{ Use: "set ", 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}