Browse Source

Add export command

Neeraj Gupta 1 year ago
parent
commit
28ddb06e2b
1 changed files with 19 additions and 0 deletions
  1. 19 0
      cmd/export.go

+ 19 - 0
cmd/export.go

@@ -0,0 +1,19 @@
+package cmd
+
+import (
+	"github.com/spf13/cobra"
+)
+
+// versionCmd represents the version command
+var exportCmd = &cobra.Command{
+	Use:   "export",
+	Short: "Starts the export process",
+	Long:  ``,
+	Run: func(cmd *cobra.Command, args []string) {
+		ctrl.StartSync()
+	},
+}
+
+func init() {
+	rootCmd.AddCommand(exportCmd)
+}