From ab46387d4d02e30b171a7c2fa07947b41ec691a0 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 18 May 2026 16:59:16 +1000 Subject: v0.17a --- SetImplicitTag.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SetImplicitTag.cs (limited to 'SetImplicitTag.cs') diff --git a/SetImplicitTag.cs b/SetImplicitTag.cs new file mode 100644 index 0000000..8d11f1c --- /dev/null +++ b/SetImplicitTag.cs @@ -0,0 +1,17 @@ +using HyperBooru.ApiClient; +using System.Management.Automation; + +namespace HyperBooru.PowerShell; + +[Alias("shbit")] +[Cmdlet(VerbsCommon.Set, "HyperBooruImplicitTag")] +public class SetImplicitTagCmdlet : 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.ReplaceImplicitTagsAsync(TagDefinitionId, ImplicitTagId) + .GetAwaiter() + .GetResult(); +} -- cgit v1.3