summaryrefslogtreecommitdiff
path: root/RemoveImplicitTag.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-18 16:59:16 +1000
committerJake Mannens <jake@asger.xyz>2026-05-18 16:59:16 +1000
commitab46387d4d02e30b171a7c2fa07947b41ec691a0 (patch)
tree0e3311e320de78476917e073d4f2ef954624a24a /RemoveImplicitTag.cs
parent7b17bd8ef7ee8b3391fea3bf7a9e1866be92e81b (diff)
Diffstat (limited to 'RemoveImplicitTag.cs')
-rw-r--r--RemoveImplicitTag.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/RemoveImplicitTag.cs b/RemoveImplicitTag.cs
new file mode 100644
index 0000000..7d156ab
--- /dev/null
+++ b/RemoveImplicitTag.cs
@@ -0,0 +1,17 @@
+using HyperBooru.ApiClient;
+using System.Management.Automation;
+
+namespace HyperBooru.PowerShell;
+
+[Alias("rhbit")]
+[Cmdlet(VerbsCommon.Remove, "HyperBooruImplicitTag")]
+public class RemoveImplicitTagCmdlet : 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.DeleteImplicitTagAsync(TagDefinitionId, ImplicitTagId)
+ .GetAwaiter()
+ .GetResult();
+}