summaryrefslogtreecommitdiff
path: root/GetIngestStatistics.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GetIngestStatistics.cs')
-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());
+}