install_config.go 451 B

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