blob: 067a750a433083ffa8252d5abaadf547f570bf2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.Management.Automation;
namespace HyperBooru.PowerShell;
[Alias("rhbit")]
[Cmdlet(VerbsCommon.Remove, "HyperBooruImplicitTag")]
public class RemoveImplicitTagCmdlet : SessionCmdlet {
[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();
}
|