summaryrefslogtreecommitdiff
path: root/GetIngestStatistics.cs
blob: 0a61c1f279b82146c38c8a4dd4dd6cbd2d8992a8 (plain)
1
2
3
4
5
6
7
8
9
10
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());
}