package command import ( "fmt" "github.com/spf13/cobra" ) var InstallCommand = &cobra.Command{ Use: "install", Short: "Install kurz", Long: "Install kurz completely", Run: installCommand, } func installCommand(c *cobra.Command, args []string) { fmt.Println("Pretend to install kurz completely.") } func init() { kurz.AddCommand(InstallCommand) }