mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-06 01:21:18 -04:00
parent
c422ac2351
commit
d24550f521
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@ using DiscordChatExporter.Core.Exporting.Partitioning;
|
||||||
using DiscordChatExporter.Core.Utils;
|
using DiscordChatExporter.Core.Utils;
|
||||||
using DiscordChatExporter.Core.Utils.Extensions;
|
using DiscordChatExporter.Core.Utils.Extensions;
|
||||||
using Gress;
|
using Gress;
|
||||||
|
using Spectre.Console;
|
||||||
|
|
||||||
namespace DiscordChatExporter.Cli.Commands.Base;
|
namespace DiscordChatExporter.Cli.Commands.Base;
|
||||||
|
|
||||||
|
@ -168,6 +169,12 @@ public abstract class ExportCommandBase : DiscordCommandBase
|
||||||
await console.Output.WriteLineAsync($"Exporting {channels.Count} channel(s)...");
|
await console.Output.WriteLineAsync($"Exporting {channels.Count} channel(s)...");
|
||||||
await console
|
await console
|
||||||
.CreateProgressTicker()
|
.CreateProgressTicker()
|
||||||
|
.HideCompleted(
|
||||||
|
// When exporting multiple channels in parallel, hide the completed tasks
|
||||||
|
// because it gets hard to visually parse them as they complete out of order.
|
||||||
|
// https://github.com/Tyrrrz/DiscordChatExporter/issues/1124
|
||||||
|
ParallelLimit > 1
|
||||||
|
)
|
||||||
.StartAsync(async progressContext =>
|
.StartAsync(async progressContext =>
|
||||||
{
|
{
|
||||||
await Parallel.ForEachAsync(
|
await Parallel.ForEachAsync(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue