From 982227cf1fd3618127feeaea135783da111365e6 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 16 Nov 2023 15:21:50 -0600 Subject: [PATCH] Change to inherit from Cmdlet --- LANCommander.PowerShell/Cmdlets/Convert-AspectRatio.cs | 2 +- LANCommander.PowerShell/Cmdlets/ConvertTo-StringBytes.cs | 2 +- LANCommander.PowerShell/Cmdlets/Edit-PatchBinary.cs | 2 +- LANCommander.PowerShell/Cmdlets/Get-GameManifest.cs | 2 +- LANCommander.PowerShell/Cmdlets/Get-PrimaryDisplay.cs | 2 +- LANCommander.PowerShell/Cmdlets/Install-Game.cs | 2 +- LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs | 2 +- LANCommander.PowerShell/Cmdlets/Write-GameManifest.cs | 2 +- LANCommander.PowerShell/Cmdlets/Write-ReplaceContentInFile.cs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LANCommander.PowerShell/Cmdlets/Convert-AspectRatio.cs b/LANCommander.PowerShell/Cmdlets/Convert-AspectRatio.cs index 5bb019d..a31949a 100644 --- a/LANCommander.PowerShell/Cmdlets/Convert-AspectRatio.cs +++ b/LANCommander.PowerShell/Cmdlets/Convert-AspectRatio.cs @@ -11,7 +11,7 @@ namespace LANCommander.PowerShell.Cmdlets [Cmdlet(VerbsData.Convert, "AspectRatio")] [OutputType(typeof(string))] - public class ConvertAspectRatioCmdlet : PSCmdlet + public class ConvertAspectRatioCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0)] public int Width { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/ConvertTo-StringBytes.cs b/LANCommander.PowerShell/Cmdlets/ConvertTo-StringBytes.cs index 87b3c09..dced3b9 100644 --- a/LANCommander.PowerShell/Cmdlets/ConvertTo-StringBytes.cs +++ b/LANCommander.PowerShell/Cmdlets/ConvertTo-StringBytes.cs @@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsData.ConvertTo, "StringBytes")] [OutputType(typeof(byte[]))] - public class ConvertToStringBytesCmdlet : PSCmdlet + public class ConvertToStringBytesCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] public string Input { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Edit-PatchBinary.cs b/LANCommander.PowerShell/Cmdlets/Edit-PatchBinary.cs index 0e73580..95e2e46 100644 --- a/LANCommander.PowerShell/Cmdlets/Edit-PatchBinary.cs +++ b/LANCommander.PowerShell/Cmdlets/Edit-PatchBinary.cs @@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsData.Edit, "PatchBinary")] [OutputType(typeof(string))] - public class EditPatchBinaryCmdlet : PSCmdlet + public class EditPatchBinaryCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0)] public long Offset { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Get-GameManifest.cs b/LANCommander.PowerShell/Cmdlets/Get-GameManifest.cs index b012bd5..d11ea2b 100644 --- a/LANCommander.PowerShell/Cmdlets/Get-GameManifest.cs +++ b/LANCommander.PowerShell/Cmdlets/Get-GameManifest.cs @@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsCommon.Get, "GameManifest")] [OutputType(typeof(GameManifest))] - public class GetGameManifestCmdlet : PSCmdlet + public class GetGameManifestCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] public string Path { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Get-PrimaryDisplay.cs b/LANCommander.PowerShell/Cmdlets/Get-PrimaryDisplay.cs index 0b53547..93c838e 100644 --- a/LANCommander.PowerShell/Cmdlets/Get-PrimaryDisplay.cs +++ b/LANCommander.PowerShell/Cmdlets/Get-PrimaryDisplay.cs @@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsCommon.Get, "PrimaryDisplay")] [OutputType(typeof(string))] - public class GetPrimaryDisplayCmdlet : PSCmdlet + public class GetPrimaryDisplayCmdlet : Cmdlet { protected override void ProcessRecord() { diff --git a/LANCommander.PowerShell/Cmdlets/Install-Game.cs b/LANCommander.PowerShell/Cmdlets/Install-Game.cs index fe5ce74..84d8b5c 100644 --- a/LANCommander.PowerShell/Cmdlets/Install-Game.cs +++ b/LANCommander.PowerShell/Cmdlets/Install-Game.cs @@ -11,7 +11,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsLifecycle.Install, "Game")] [OutputType(typeof(string))] - public class InstallGameCmdlet : PSCmdlet + public class InstallGameCmdlet : Cmdlet { [Parameter(Mandatory = true)] public Client Client { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs b/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs index 5746de8..27b3dc4 100644 --- a/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs +++ b/LANCommander.PowerShell/Cmdlets/Uninstall-Game.cs @@ -12,7 +12,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsLifecycle.Uninstall, "Game")] [OutputType(typeof(string))] - public class UninstallGameCmdlet : PSCmdlet + public class UninstallGameCmdlet : Cmdlet { [Parameter(Mandatory = true)] public string InstallDirectory { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Write-GameManifest.cs b/LANCommander.PowerShell/Cmdlets/Write-GameManifest.cs index 6d9ad0c..28ff74d 100644 --- a/LANCommander.PowerShell/Cmdlets/Write-GameManifest.cs +++ b/LANCommander.PowerShell/Cmdlets/Write-GameManifest.cs @@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets { [Cmdlet(VerbsCommunications.Write, "GameManifest")] [OutputType(typeof(string))] - public class WriteGameManifestCmdlet : PSCmdlet + public class WriteGameManifestCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] public string Path { get; set; } diff --git a/LANCommander.PowerShell/Cmdlets/Write-ReplaceContentInFile.cs b/LANCommander.PowerShell/Cmdlets/Write-ReplaceContentInFile.cs index 32cda9c..3a96f72 100644 --- a/LANCommander.PowerShell/Cmdlets/Write-ReplaceContentInFile.cs +++ b/LANCommander.PowerShell/Cmdlets/Write-ReplaceContentInFile.cs @@ -7,7 +7,7 @@ namespace LANCommander.PowerShell.Cmdlets [Cmdlet(VerbsCommunications.Write, "ReplaceContentInFile")] [OutputType(typeof(string))] - public class ReplaceContentInFileCmdlet : PSCmdlet + public class ReplaceContentInFileCmdlet : Cmdlet { [Parameter(Mandatory = true, Position = 0)] public string Pattern { get; set; }