summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-07-20 17:13:35 +0200
committerGitHub <noreply@github.com>2018-07-20 17:13:35 +0200
commit610ac5a53c0f6536ca65ed2fe6e0646b468bd275 (patch)
tree8ed3bb8e7073f47fccf2968ffdae97d2ce7563ce /cmd
parente97104a3c47d744c31c3739c9632e5988ca703b0 (diff)
downloadchat-610ac5a53c0f6536ca65ed2fe6e0646b468bd275.tar.gz
chat-610ac5a53c0f6536ca65ed2fe6e0646b468bd275.tar.bz2
chat-610ac5a53c0f6536ca65ed2fe6e0646b468bd275.zip
MM-11003: Global Relay Export Refactor (#9136)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mattermost/commands/message_export.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/mattermost/commands/message_export.go b/cmd/mattermost/commands/message_export.go
index ee1a7ef7f..ae97eacfb 100644
--- a/cmd/mattermost/commands/message_export.go
+++ b/cmd/mattermost/commands/message_export.go
@@ -44,15 +44,25 @@ var ActianceExportCmd = &cobra.Command{
RunE: buildExportCmdF("actiance"),
}
+var GlobalRelayExportCmd = &cobra.Command{
+ Use: "global-relay",
+ Short: "Export data from Mattermost in Global Relay format",
+ Long: "Export data from Mattermost in Global Relay format",
+ Example: "export global-relay --exportFrom=12345",
+ RunE: buildExportCmdF("globalrelay"),
+}
+
func init() {
ScheduleExportCmd.Flags().String("format", "actiance", "The format to export data")
ScheduleExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
ScheduleExportCmd.Flags().Int("timeoutSeconds", -1, "The maximum number of seconds to wait for the job to complete before timing out.")
CsvExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
ActianceExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
+ GlobalRelayExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
MessageExportCmd.AddCommand(ScheduleExportCmd)
MessageExportCmd.AddCommand(CsvExportCmd)
MessageExportCmd.AddCommand(ActianceExportCmd)
+ MessageExportCmd.AddCommand(GlobalRelayExportCmd)
RootCmd.AddCommand(MessageExportCmd)
}