summaryrefslogtreecommitdiff
path: root/SetImplicitTag.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SetImplicitTag.cs')
-rw-r--r--SetImplicitTag.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/SetImplicitTag.cs b/SetImplicitTag.cs
index 8d11f1c..409b975 100644
--- a/SetImplicitTag.cs
+++ b/SetImplicitTag.cs
@@ -1,14 +1,12 @@
-using HyperBooru.ApiClient;
-using System.Management.Automation;
+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; }
+public class SetImplicitTagCmdlet : 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.ReplaceImplicitTagsAsync(TagDefinitionId, ImplicitTagId)