Hide completed tasks in CLI when exporting in parallel

Closes #1124
pull/1125/head
Tyrrrz 1 year ago
parent c422ac2351
commit d24550f521

@ -18,6 +18,7 @@ using DiscordChatExporter.Core.Exporting.Partitioning;
using DiscordChatExporter.Core.Utils;
using DiscordChatExporter.Core.Utils.Extensions;
using Gress;
using Spectre.Console;
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
.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 =>
{
await Parallel.ForEachAsync(

Loading…
Cancel
Save