diff options
Diffstat (limited to 'DisconnectSession.cs')
| -rw-r--r-- | DisconnectSession.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/DisconnectSession.cs b/DisconnectSession.cs new file mode 100644 index 0000000..222b00e --- /dev/null +++ b/DisconnectSession.cs @@ -0,0 +1,10 @@ +using System.Management.Automation; + +namespace HyperBooru.PowerShell; + +[Alias("dchbs")] +[Cmdlet(VerbsCommunications.Disconnect, "HyperBooruSession")] +public class DisconnectSessionCmdlet : PSCmdlet { + protected override void BeginProcessing() => + SessionCmdlet.GlobalSession = null; +} |
