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