install.go 363 B

123456789101112131415161718192021
  1. package command
  2. import (
  3. "fmt"
  4. "github.com/spf13/cobra"
  5. )
  6. var InstallCommand = &cobra.Command{
  7. Use: "install",
  8. Short: "Install kurz",
  9. Long: "Install kurz completely",
  10. Run: installCommand,
  11. }
  12. func installCommand(c *cobra.Command, args []string) {
  13. fmt.Println("Pretend to install kurz completely.")
  14. }
  15. func init() {
  16. kurz.AddCommand(InstallCommand)
  17. }