12345678910111213141516171819 |
- package command
- import (
- "fmt"
- "github.com/spf13/cobra"
- )
- var ExportCommand = &cobra.Command{
- Use: "export",
- Short: "Export kurz data",
- Long: fmt.Printf("Export the kurz configuration (from ~/%s) or content", ConfigName),
- }
- var exportDestination string
- func init() {
- ExportCommand.Flags().StringVarP(&exportDestination, "output", "o", "", "The file in which the output will be written")
- kurz.AddCommand(ExportCommand)
- }
|