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 /RemoveUser.cs | |
| parent | ab46387d4d02e30b171a7c2fa07947b41ec691a0 (diff) | |
Diffstat (limited to 'RemoveUser.cs')
| -rw-r--r-- | RemoveUser.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/RemoveUser.cs b/RemoveUser.cs index 0e28675..5251103 100644 --- a/RemoveUser.cs +++ b/RemoveUser.cs @@ -1,14 +1,10 @@ -using HyperBooru.ApiClient; -using System.Management.Automation; +using System.Management.Automation; namespace HyperBooru.PowerShell; [Alias("rhbu")] [Cmdlet(VerbsCommon.Remove, "HyperBooruUser")] -public class RemoveUserCmdlet : PSCmdlet { - [Parameter(Position = 0, Mandatory = true)] - public HBSession Session { get; set; } - +public class RemoveUserCmdlet : SessionCmdlet { [Parameter(Position = 1, Mandatory = true)] public Guid UserId { get; set; } @@ -16,5 +12,7 @@ public class RemoveUserCmdlet : PSCmdlet { Session.User.DeleteUserAsync(UserId) .GetAwaiter() .GetResult(); + + WriteVerbose($"Removed user {UserId.ToString().ToUpper()}"); } } |
