blob: 2ec64ed837665cf73a261a204fb5a1203d7b9732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using System.Management.Automation;
namespace HyperBooru.PowerShell;
[Alias("rhbu")]
[Cmdlet(VerbsCommon.Remove, "HyperBooruUser")]
public class RemoveUserCmdlet : SessionCmdlet {
[Parameter(Position = 1, Mandatory = true)]
public Guid UserId { get; set; }
protected override void ProcessRecord() {
Session.User.DeleteUserAsync(UserId)
.GetAwaiter()
.GetResult();
}
}
|