From d36e27387eabf88845d364b9d3a2da54a583247f Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 15 Jun 2026 12:54:44 +1000 Subject: v0.18a --- RemoveTagDefinition.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'RemoveTagDefinition.cs') diff --git a/RemoveTagDefinition.cs b/RemoveTagDefinition.cs index e28d7f9..b0d4a11 100644 --- a/RemoveTagDefinition.cs +++ b/RemoveTagDefinition.cs @@ -1,16 +1,17 @@ -using HyperBooru.ApiClient; -using System.Management.Automation; +using System.Management.Automation; namespace HyperBooru.PowerShell; [Alias("rhbtd")] [Cmdlet(VerbsCommon.Remove, "HyperBooruTagDefinition")] -public class RemoveTagDefinitionCmdlet : PSCmdlet { - [Parameter(Mandatory = true)] public required HBSession Session { get; set; } - [Parameter(Mandatory = true)] public required Guid TagDefinitionId { get; set; } +public class RemoveTagDefinitionCmdlet : SessionCmdlet { + [Parameter(Mandatory = true)] public required Guid TagDefinitionId { get; set; } - protected override void ProcessRecord() => + protected override void ProcessRecord() { Session.Tag.DeleteTagDefinitionAsync(TagDefinitionId) .GetAwaiter() .GetResult(); + + WriteVerbose($"Removed tag definition {TagDefinitionId.ToString().ToUpper()}"); + } } -- cgit v1.3