From c6594eeb2d4060e2968993dc818a64cbd84f7efe Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 11 Dec 2024 14:13:51 -0700 Subject: [PATCH] refactor: exported more cmd variables --- cmd/update.go | 2 +- cmd/version.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index ed9f7c5..4b3475c 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -133,5 +133,5 @@ func init() { checkBindFlagError(viper.BindPFlag("update.status", updateCmd.Flags().Lookup("status"))) checkBindFlagError(viper.BindPFlag("update.insecure", updateCmd.Flags().Lookup("insecure"))) - rootCmd.AddCommand(updateCmd) + rootCmd.AddCommand(UpdateCmd) } diff --git a/cmd/version.go b/cmd/version.go index 921ae81..769af5e 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" ) -var versionCmd = &cobra.Command{ +var VersionCmd = &cobra.Command{ Use: "version", Short: "Print version info and exit", Run: func(cmd *cobra.Command, args []string) { @@ -14,5 +14,5 @@ var versionCmd = &cobra.Command{ } func init() { - rootCmd.AddCommand(versionCmd) + rootCmd.AddCommand(VersionCmd) }