From ab46387d4d02e30b171a7c2fa07947b41ec691a0 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 18 May 2026 16:59:16 +1000 Subject: v0.17a --- RemoveTagDefinition.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 RemoveTagDefinition.cs (limited to 'RemoveTagDefinition.cs') diff --git a/RemoveTagDefinition.cs b/RemoveTagDefinition.cs new file mode 100644 index 0000000..e28d7f9 --- /dev/null +++ b/RemoveTagDefinition.cs @@ -0,0 +1,16 @@ +using HyperBooru.ApiClient; +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; } + + protected override void ProcessRecord() => + Session.Tag.DeleteTagDefinitionAsync(TagDefinitionId) + .GetAwaiter() + .GetResult(); +} -- cgit v1.3