package config import ( "github.com/spf13/cobra" ) var configDir string var configCmd = &cobra.Command{ Use: "config", Short: "config", } func InitCmd(cmd *cobra.Command, c string) { configDir = c cmd.AddCommand(configCmd) }