package command import ( "fmt" "github.com/spf13/cobra" ) var ExportConfigCommand = &cobra.Command{ Use: "config", Short: "Export kurz configuration", Long: fmt.Sprintf("Export the kurz configuration (from ~/%s)", ConfigName), Run: exportConfigCommand, } func exportConfigCommand(c *cobra.Command, args []string) { fmt.Println("Pretend to export the kurz configuration.") } func init() { ExportCommand.AddCommand(ExportConfigCommand) }