package command import ( "fmt" "github.com/spf13/cobra" ) var UninstallConfigCommand = &cobra.Command{ Use: "config", Short: "Uninstall configuration", Long: fmt.Printf("Uninstall the kurz configuration from ~/%s", ConfigName), Run: uninstallConfigCommand, } func uninstallConfigCommand(c *cobra.Command, args []string) { fmt.Println("Pretend to uninstall the kurz configuration.") } func init() { UninstallCommand.AddCommand(UninstallConfigCommand) }