refactor: exported more cmd variables

This commit is contained in:
David Allen 2024-12-11 14:13:51 -07:00 committed by David Allen
parent b5d85b61bb
commit c9086264d1
Signed by: towk
GPG key ID: 0430CDBE22619155
2 changed files with 3 additions and 3 deletions

View file

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