MM-12463 : Added capability to bulk export custom emojis (#9790)

Этот коммит содержится в:
Wasim Thabraze
2018-11-19 20:13:31 +05:30
коммит произвёл George Goldberg
родитель 2104c6878c
Коммит 246ff89391
4 изменённых файлов: 177 добавлений и 2 удалений

Просмотреть файл

@@ -180,7 +180,14 @@ func bulkExportCmdF(command *cobra.Command, args []string) error {
}
defer fileWriter.Close()
if err := a.BulkExport(fileWriter); err != nil {
// Path to directory of custom emoji
pathToEmojiDir := "data/emoji/"
// Name of the directory to export custom emoji
dirNameToExportEmoji := "exported_emoji"
// args[0] points to the filename/filepath passed with export bulk command
if err := a.BulkExport(fileWriter, args[0], pathToEmojiDir, dirNameToExportEmoji); err != nil {
CommandPrettyPrintln(err.Error())
return err
}