refactor: exported more cmd variables

This commit is contained in:
David Allen 2024-12-11 14:13:51 -07:00
parent de8dd3cabd
commit c0e498766f
Signed by: towk
GPG key ID: 793B2924A49B3A3F
4 changed files with 30 additions and 30 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)
}