|
|
|
@ -3,7 +3,7 @@ using System.IO;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using CliFx.Attributes;
|
|
|
|
|
using CliFx.Services;
|
|
|
|
|
using DiscordChatExporter.Cli.Internal;
|
|
|
|
|
using CliFx.Utilities;
|
|
|
|
|
using DiscordChatExporter.Core.Models;
|
|
|
|
|
using DiscordChatExporter.Core.Services;
|
|
|
|
|
using DiscordChatExporter.Core.Services.Helpers;
|
|
|
|
@ -50,8 +50,8 @@ namespace DiscordChatExporter.Cli.Commands
|
|
|
|
|
SettingsService.DateFormat = DateFormat;
|
|
|
|
|
|
|
|
|
|
console.Output.Write($"Exporting channel [{channel.Name}]... ");
|
|
|
|
|
using (var progress = new InlineProgress(console))
|
|
|
|
|
{
|
|
|
|
|
var progress = console.CreateProgressTicker();
|
|
|
|
|
|
|
|
|
|
// Get chat log
|
|
|
|
|
var chatLog = await DataService.GetChatLogAsync(GetToken(), channel, After, Before, progress);
|
|
|
|
|
|
|
|
|
@ -70,9 +70,7 @@ namespace DiscordChatExporter.Cli.Commands
|
|
|
|
|
// Export
|
|
|
|
|
await ExportService.ExportChatLogAsync(chatLog, filePath, ExportFormat, PartitionLimit);
|
|
|
|
|
|
|
|
|
|
// Report successful completion
|
|
|
|
|
progress.ReportCompletion();
|
|
|
|
|
}
|
|
|
|
|
console.Output.WriteLine();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|