diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-15 12:54:44 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-15 12:54:44 +1000 |
| commit | d36e27387eabf88845d364b9d3a2da54a583247f (patch) | |
| tree | 716058aac0b72c1ec1bb0b7eb47d4e3a87926299 /GetIngestStatistics.cs | |
| parent | ab46387d4d02e30b171a7c2fa07947b41ec691a0 (diff) | |
Diffstat (limited to 'GetIngestStatistics.cs')
| -rw-r--r-- | GetIngestStatistics.cs | 11 |
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()); +} |
