} var cfgCmd = &cobra.Command{ Use: "cfg", Short: "manage discfg configurations", Long: `Creates and deletes discfg configurations`, Run: func(cmd *cobra.Command, args []string) { }, } var useCmd = &cobra.Command{ Use: "use", Short: "use a specific discfg", Long: `For the current path, always use a specific discfg`, Run: func(cmd *cobra.Command, args []string) { if len(args) > 0 { Options.CfgName = args[0] } resp := commands.Use(Options) commands.Out(Options, resp) }, } var whichCmd = &cobra.Command{ Use: "which", Short: "shows current discfg in use", Long: `Shows which discfg is currently selected for use at the current path`, Run: func(cmd *cobra.Command, args []string) { resp := commands.Which(Options) commands.Out(Options, resp) }, } var createCfgCmd = &cobra.Command{