From 71345e086912234968e801981f7d0308c6f777ad Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 31 Jul 2024 10:32:19 -0700 Subject: [PATCH] Fix the admin-console upgrade CLI command help text (#4796) --- cmd/kots/cli/admin-console-upgrade.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/kots/cli/admin-console-upgrade.go b/cmd/kots/cli/admin-console-upgrade.go index 2c63851a88..7af772e040 100644 --- a/cmd/kots/cli/admin-console-upgrade.go +++ b/cmd/kots/cli/admin-console-upgrade.go @@ -1,6 +1,7 @@ package cli import ( + "fmt" "os" "strconv" "strings" @@ -8,6 +9,7 @@ import ( "github.com/manifoldco/promptui" "github.com/pkg/errors" + "github.com/replicatedhq/kots/pkg/buildversion" "github.com/replicatedhq/kots/pkg/k8sutil" "github.com/replicatedhq/kots/pkg/kotsadm" kotsadmtypes "github.com/replicatedhq/kots/pkg/kotsadm/types" @@ -20,8 +22,8 @@ import ( func AdminConsoleUpgradeCmd() *cobra.Command { cmd := &cobra.Command{ Use: "upgrade", - Short: "Upgrade the admin console to the latest version", - Long: "Upgrade the admin console to the latest version", + Short: fmt.Sprintf("Upgrade the admin console to version %s", buildversion.Version()), + Long: "", SilenceUsage: true, SilenceErrors: false, PreRun: func(cmd *cobra.Command, args []string) {