Update nuget packages

This commit is contained in:
Alexey Golub 2020-04-23 00:30:37 +03:00
parent 88a4fa792b
commit b2a48d338a
4 changed files with 9 additions and 17 deletions

View file

@ -23,17 +23,10 @@ namespace DiscordChatExporter.Cli.Commands.Base
// This uses a separate route from ExportCommandBase because the progress ticker is not thread-safe
// Ugly code ahead. Will need to refactor.
// Progress
console.Output.Write($"Exporting {channels.Count} channels... ");
var ticker = console.CreateProgressTicker();
var progress = console.CreateProgressTicker();
// TODO: refactor this after improving Gress
var progressManager = new ProgressManager();
progressManager.PropertyChanged += (sender, args) => ticker.Report(progressManager.Progress);
var operations = progressManager.CreateOperations(channels.Count);
// Export channels
var operations = progress.Wrap().CreateOperations(channels.Count);
var errors = new List<string>();
@ -62,7 +55,6 @@ namespace DiscordChatExporter.Cli.Commands.Base
}
}, ParallelLimit.ClampMin(1));
ticker.Report(1);
console.Output.WriteLine();
foreach (var error in errors)

View file

@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CliFx" Version="1.0.0" />
<PackageReference Include="Gress" Version="1.1.1" />
<PackageReference Include="CliFx" Version="1.1.0" />
<PackageReference Include="Gress" Version="1.2.0" />
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
</ItemGroup>