From ab46387d4d02e30b171a7c2fa07947b41ec691a0 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 18 May 2026 16:59:16 +1000 Subject: v0.17a --- AddImplicitTag.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 AddImplicitTag.cs (limited to 'AddImplicitTag.cs') diff --git a/AddImplicitTag.cs b/AddImplicitTag.cs new file mode 100644 index 0000000..50f6cfc --- /dev/null +++ b/AddImplicitTag.cs @@ -0,0 +1,17 @@ +using HyperBooru.ApiClient; +using System.Management.Automation; + +namespace HyperBooru.PowerShell; + +[Alias("ahbit")] +[Cmdlet(VerbsCommon.Add, "HyperBooruImplicitTag")] +public class AddImplicitTagCmdlet : PSCmdlet { + [Parameter(Mandatory = true)] public required HBSession Session { get; set; } + [Parameter(Mandatory = true)] public required Guid TagDefinitionId { get; set; } + [Parameter(Mandatory = true)] public required Guid[] ImplicitTagId { get; set; } + + protected override void ProcessRecord() => + Session.Tag.AddImplicitTagsAsync(TagDefinitionId, ImplicitTagId) + .GetAwaiter() + .GetResult(); +} -- cgit v1.3