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