blob: e98778acdc3be285206d3b8373cda60ed2bd5e3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.Management.Automation;
namespace HyperBooru.PowerShell;
[Alias("ahbit")]
[Cmdlet(VerbsCommon.Add, "HyperBooruImplicitTag")]
public class AddImplicitTagCmdlet : 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.AddImplicitTagsAsync(TagDefinitionId, ImplicitTagId)
.GetAwaiter()
.GetResult();
}
|