Skip to content

Commit 44b682e

Browse files
committed
Render globals totals after running nuget command
1 parent c65466e commit 44b682e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Commands/NuGetStatsCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Devlooped.Web;
99
using DotNetConfig;
1010
using Humanizer;
11-
using Microsoft.OData;
1211
using NuGet.Configuration;
1312
using NuGet.Packaging;
1413
using NuGet.Packaging.Core;
@@ -406,14 +405,14 @@ await Parallel.ForEachAsync(tasks, paralell, async (source, cancellation) =>
406405
File.WriteAllText(fileName, JsonSerializer.Serialize(model, JsonOptions.Default));
407406
}
408407

409-
listTask.Description = $":call_me_hand: [grey]Finished page[/] [aqua]#{index}[/][grey]. Total[/] [lime]{model.Authors.Count}[/] [grey]oss authors so far across[/] {model.Repositories.Count} [grey]repos.[/]";
408+
listTask.Description = $":call_me_hand: [grey]Finished page[/] [aqua]#{index}[/][grey]. Total[/] [lime]{model.Totals.Authors}[/] [grey]oss authors so far across[/] {model.Totals.Repositories} [grey]repos.[/]";
410409
listTask.StopTask();
411410
index++;
412411
}
413412
});
414413

415414
var path = new FileInfo(fileName).FullName;
416-
AnsiConsole.MarkupLine($"Total [lime]{model.Authors.Count}[/] oss authors across {model.Repositories.Count} repos => [link={path}]{fileName}[/]");
415+
AnsiConsole.MarkupLine($"Total [lime]{model.Totals.Authors}[/] oss authors contributing to {model.Totals.Repositories} repos producing {model.Totals.Packages} with {model.Totals.Downloads} dl/day => [link={path}]{fileName}[/]");
417416

418417
return 0;
419418
}

0 commit comments

Comments
 (0)