package cmd import ( "fmt" "github.com/spf13/cobra" ) var versionCmd = &cobra.Command{ Use: "version", Short: "Print the Sub-Store version", Run: func(cmd *cobra.Command, args []string) { fmt.Println("sub-store v1.0.0") }, } func init() { rootCmd.AddCommand(versionCmd) }