summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-25 23:46:44 +1000
committerJake Mannens <jake@asger.xyz>2026-05-25 23:46:44 +1000
commit2de51b662179fb9122ce3994a38607f23cb18213 (patch)
tree7cd899e774757d0e0d1846427cef167be6ea0997
parente5ec335c14212c2479c201487c358e56a3f14e12 (diff)
Added Get-HyperBooruIngestStatistics cmdletdev
-rw-r--r--GetIngestStatistics.cs11
1 files changed, 11 insertions, 0 deletions
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());
+}