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) }