Change to inherit from Cmdlet

pull/33/head
Pat Hartl 2023-11-16 15:21:50 -06:00
parent 8abc2fa15e
commit 982227cf1f
9 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@ namespace LANCommander.PowerShell.Cmdlets
[Cmdlet(VerbsData.Convert, "AspectRatio")] [Cmdlet(VerbsData.Convert, "AspectRatio")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class ConvertAspectRatioCmdlet : PSCmdlet public class ConvertAspectRatioCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0)] [Parameter(Mandatory = true, Position = 0)]
public int Width { get; set; } public int Width { get; set; }

View File

@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsData.ConvertTo, "StringBytes")] [Cmdlet(VerbsData.ConvertTo, "StringBytes")]
[OutputType(typeof(byte[]))] [OutputType(typeof(byte[]))]
public class ConvertToStringBytesCmdlet : PSCmdlet public class ConvertToStringBytesCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
public string Input { get; set; } public string Input { get; set; }

View File

@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsData.Edit, "PatchBinary")] [Cmdlet(VerbsData.Edit, "PatchBinary")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class EditPatchBinaryCmdlet : PSCmdlet public class EditPatchBinaryCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0)] [Parameter(Mandatory = true, Position = 0)]
public long Offset { get; set; } public long Offset { get; set; }

View File

@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsCommon.Get, "GameManifest")] [Cmdlet(VerbsCommon.Get, "GameManifest")]
[OutputType(typeof(GameManifest))] [OutputType(typeof(GameManifest))]
public class GetGameManifestCmdlet : PSCmdlet public class GetGameManifestCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
public string Path { get; set; } public string Path { get; set; }

View File

@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsCommon.Get, "PrimaryDisplay")] [Cmdlet(VerbsCommon.Get, "PrimaryDisplay")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class GetPrimaryDisplayCmdlet : PSCmdlet public class GetPrimaryDisplayCmdlet : Cmdlet
{ {
protected override void ProcessRecord() protected override void ProcessRecord()
{ {

View File

@ -11,7 +11,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsLifecycle.Install, "Game")] [Cmdlet(VerbsLifecycle.Install, "Game")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class InstallGameCmdlet : PSCmdlet public class InstallGameCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true)] [Parameter(Mandatory = true)]
public Client Client { get; set; } public Client Client { get; set; }

View File

@ -12,7 +12,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsLifecycle.Uninstall, "Game")] [Cmdlet(VerbsLifecycle.Uninstall, "Game")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class UninstallGameCmdlet : PSCmdlet public class UninstallGameCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true)] [Parameter(Mandatory = true)]
public string InstallDirectory { get; set; } public string InstallDirectory { get; set; }

View File

@ -6,7 +6,7 @@ namespace LANCommander.PowerShell.Cmdlets
{ {
[Cmdlet(VerbsCommunications.Write, "GameManifest")] [Cmdlet(VerbsCommunications.Write, "GameManifest")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class WriteGameManifestCmdlet : PSCmdlet public class WriteGameManifestCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
public string Path { get; set; } public string Path { get; set; }

View File

@ -7,7 +7,7 @@ namespace LANCommander.PowerShell.Cmdlets
[Cmdlet(VerbsCommunications.Write, "ReplaceContentInFile")] [Cmdlet(VerbsCommunications.Write, "ReplaceContentInFile")]
[OutputType(typeof(string))] [OutputType(typeof(string))]
public class ReplaceContentInFileCmdlet : PSCmdlet public class ReplaceContentInFileCmdlet : Cmdlet
{ {
[Parameter(Mandatory = true, Position = 0)] [Parameter(Mandatory = true, Position = 0)]
public string Pattern { get; set; } public string Pattern { get; set; }