uninstall_config.go 469 B

123456789101112131415161718192021
  1. package command
  2. import (
  3. "fmt"
  4. "github.com/spf13/cobra"
  5. )
  6. var UninstallConfigCommand = &cobra.Command{
  7. Use: "config",
  8. Short: "Uninstall configuration",
  9. Long: fmt.Printf("Uninstall the kurz configuration from ~/%s", ConfigName),
  10. Run: uninstallConfigCommand,
  11. }
  12. func uninstallConfigCommand(c *cobra.Command, args []string) {
  13. fmt.Println("Pretend to uninstall the kurz configuration.")
  14. }
  15. func init() {
  16. UninstallCommand.AddCommand(UninstallConfigCommand)
  17. }