export_config.go 453 B

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