From 2de51b662179fb9122ce3994a38607f23cb18213 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 25 May 2026 23:46:44 +1000 Subject: Added Get-HyperBooruIngestStatistics cmdlet --- GetIngestStatistics.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 GetIngestStatistics.cs (limited to 'GetIngestStatistics.cs') diff --git a/GetIngestStatistics.cs b/GetIngestStatistics.cs new file mode 100644 index 0000000..0a61c1f --- /dev/null +++ b/GetIngestStatistics.cs @@ -0,0 +1,11 @@ +using System.Management.Automation; + +namespace HyperBooru.PowerShell; + +[Alias("ghbis")] +[Cmdlet(VerbsCommon.Get, "HyperBooruIngestStatistics")] +public class GetIngestStatisticsCmdlet : SessionCmdlet { + protected override void ProcessRecord() => + WriteObject( + Session.Statistics.GetIngestStatisticsAsync().GetAwaiter().GetResult()); +} -- cgit v1.3