diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-18 17:01:02 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-05-19 03:29:47 +1000 |
| commit | 07cfbfdb92890188cc0bed120acb1fcbf72d34db (patch) | |
| tree | 7beaf4ccf29d3060ef10e1c293a5ad6620535256 /RemoveImplicitTag.cs | |
| parent | ab46387d4d02e30b171a7c2fa07947b41ec691a0 (diff) | |
Added default global fallback session context
Diffstat (limited to 'RemoveImplicitTag.cs')
| -rw-r--r-- | RemoveImplicitTag.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/RemoveImplicitTag.cs b/RemoveImplicitTag.cs index 7d156ab..067a750 100644 --- a/RemoveImplicitTag.cs +++ b/RemoveImplicitTag.cs @@ -1,14 +1,12 @@ -using HyperBooru.ApiClient; -using System.Management.Automation; +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; } +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) |
