export.go 313 B

12345678910111213141516171819
  1. package cmd
  2. import (
  3. "github.com/spf13/cobra"
  4. )
  5. // versionCmd represents the version command
  6. var exportCmd = &cobra.Command{
  7. Use: "export",
  8. Short: "Starts the export process",
  9. Long: ``,
  10. Run: func(cmd *cobra.Command, args []string) {
  11. ctrl.Export()
  12. },
  13. }
  14. func init() {
  15. rootCmd.AddCommand(exportCmd)
  16. }