Update nuget packages

pull/321/head
Alexey Golub 5 years ago
parent 88a4fa792b
commit b2a48d338a

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

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

@ -3,7 +3,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Polly" Version="7.2.0" /> <PackageReference Include="Polly" Version="7.2.0" />
<PackageReference Include="Scriban" Version="2.1.1" /> <PackageReference Include="Scriban" Version="2.1.2" />
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" /> <PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
</ItemGroup> </ItemGroup>

@ -13,16 +13,16 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Gress" Version="1.1.1" /> <PackageReference Include="Gress" Version="1.2.0" />
<PackageReference Include="MaterialDesignColors" Version="1.2.2" /> <PackageReference Include="MaterialDesignColors" Version="1.2.2" />
<PackageReference Include="MaterialDesignThemes" Version="3.0.1" /> <PackageReference Include="MaterialDesignThemes" Version="3.0.1" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.19" /> <PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.19" />
<PackageReference Include="Ookii.Dialogs.Wpf" Version="1.1.0" /> <PackageReference Include="Ookii.Dialogs.Wpf" Version="1.1.0" />
<PackageReference Include="Onova" Version="2.5.2" /> <PackageReference Include="Onova" Version="2.6.0" />
<PackageReference Include="Stylet" Version="1.3.0" /> <PackageReference Include="Stylet" Version="1.3.1" />
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" /> <PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
<PackageReference Include="Tyrrrz.Settings" Version="1.3.4" /> <PackageReference Include="Tyrrrz.Settings" Version="1.3.4" />
<PackageReference Include="PropertyChanged.Fody" Version="3.2.5" PrivateAssets="all" /> <PackageReference Include="PropertyChanged.Fody" Version="3.2.8" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

Loading…
Cancel
Save