export.go 434 B

12345678910111213141516171819
  1. package command
  2. import (
  3. "fmt"
  4. "github.com/spf13/cobra"
  5. )
  6. var ExportCommand = &cobra.Command{
  7. Use: "export",
  8. Short: "Export kurz data",
  9. Long: fmt.Printf("Export the kurz configuration (from ~/%s) or content", ConfigName),
  10. }
  11. var exportDestination string
  12. func init() {
  13. ExportCommand.Flags().StringVarP(&exportDestination, "output", "o", "", "The file in which the output will be written")
  14. kurz.AddCommand(ExportCommand)
  15. }