diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-25 23:46:44 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-05-25 23:46:44 +1000 |
| commit | 2de51b662179fb9122ce3994a38607f23cb18213 (patch) | |
| tree | 7cd899e774757d0e0d1846427cef167be6ea0997 /GetIngestStatistics.cs | |
| parent | e5ec335c14212c2479c201487c358e56a3f14e12 (diff) | |
Added Get-HyperBooruIngestStatistics cmdletdev
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()); +} |
