mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-25 20:06:56 +00:00
feat: add cmdlet aliases for common operations
Aliases: cpve (Connect), dpve (Disconnect), gpvm (Get-PveVm), gpct (Get-PveContainer), gpn (Get-PveNode), gpvs (Get-PveStorage), gpt (Get-PveTask). AliasesToExport added to manifest. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ namespace PSProxmoxVE.Cmdlets.Connection
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommunications.Connect, "PveServer",
|
[Cmdlet(VerbsCommunications.Connect, "PveServer",
|
||||||
DefaultParameterSetName = ParameterSetCredential)]
|
DefaultParameterSetName = ParameterSetCredential)]
|
||||||
|
[Alias("cpve")]
|
||||||
[OutputType(typeof(PveSession))]
|
[OutputType(typeof(PveSession))]
|
||||||
public sealed class ConnectPveServerCmdlet : PSCmdlet
|
public sealed class ConnectPveServerCmdlet : PSCmdlet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace PSProxmoxVE.Cmdlets.Connection
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommunications.Disconnect, "PveServer",
|
[Cmdlet(VerbsCommunications.Disconnect, "PveServer",
|
||||||
SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
|
SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
|
||||||
|
[Alias("dpve")]
|
||||||
public sealed class DisconnectPveServerCmdlet : PSCmdlet
|
public sealed class DisconnectPveServerCmdlet : PSCmdlet
|
||||||
{
|
{
|
||||||
protected override void ProcessRecord()
|
protected override void ProcessRecord()
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ namespace PSProxmoxVE.Cmdlets.Containers
|
|||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommon.Get, "PveContainer")]
|
[Cmdlet(VerbsCommon.Get, "PveContainer")]
|
||||||
|
[Alias("gpct")]
|
||||||
[OutputType(typeof(PveContainer))]
|
[OutputType(typeof(PveContainer))]
|
||||||
public sealed class GetPveContainerCmdlet : PveCmdletBase
|
public sealed class GetPveContainerCmdlet : PveCmdletBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace PSProxmoxVE.Cmdlets.Nodes
|
|||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommon.Get, "PveNode")]
|
[Cmdlet(VerbsCommon.Get, "PveNode")]
|
||||||
|
[Alias("gpn")]
|
||||||
[OutputType(typeof(PveNode))]
|
[OutputType(typeof(PveNode))]
|
||||||
public sealed class GetPveNodeCmdlet : PveCmdletBase
|
public sealed class GetPveNodeCmdlet : PveCmdletBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace PSProxmoxVE.Cmdlets.Storage
|
|||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommon.Get, "PveStorage")]
|
[Cmdlet(VerbsCommon.Get, "PveStorage")]
|
||||||
|
[Alias("gpvs")]
|
||||||
[OutputType(typeof(PveStorage))]
|
[OutputType(typeof(PveStorage))]
|
||||||
public class GetPveStorageCmdlet : PveCmdletBase
|
public class GetPveStorageCmdlet : PveCmdletBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace PSProxmoxVE.Cmdlets.Tasks
|
|||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommon.Get, "PveTask")]
|
[Cmdlet(VerbsCommon.Get, "PveTask")]
|
||||||
|
[Alias("gpt")]
|
||||||
[OutputType(typeof(PveTask))]
|
[OutputType(typeof(PveTask))]
|
||||||
public class GetPveTaskCmdlet : PveCmdletBase
|
public class GetPveTaskCmdlet : PveCmdletBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ namespace PSProxmoxVE.Cmdlets.Vms
|
|||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Cmdlet(VerbsCommon.Get, "PveVm")]
|
[Cmdlet(VerbsCommon.Get, "PveVm")]
|
||||||
|
[Alias("gpvm")]
|
||||||
[OutputType(typeof(PveVm))]
|
[OutputType(typeof(PveVm))]
|
||||||
public sealed class GetPveVmCmdlet : PveCmdletBase
|
public sealed class GetPveVmCmdlet : PveCmdletBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
# Copyright statement for this module
|
# Copyright statement for this module
|
||||||
Copyright = '(c) 2026 goodolclint. All rights reserved.'
|
Copyright = '(c) 2026 goodolclint. All rights reserved.'
|
||||||
|
|
||||||
|
# URI for online help
|
||||||
|
HelpInfoUri = 'https://github.com/goodolclint/PSProxmoxVE/tree/main/docs/cmdlets'
|
||||||
|
|
||||||
# Description of the functionality provided by this module
|
# Description of the functionality provided by this module
|
||||||
Description = 'PowerShell module for managing Proxmox VE environments. Supports PVE 8.x and 9.x with full VM, container, storage, network, and cluster management capabilities.'
|
Description = 'PowerShell module for managing Proxmox VE environments. Supports PVE 8.x and 9.x with full VM, container, storage, network, and cluster management capabilities.'
|
||||||
|
|
||||||
@@ -88,6 +91,7 @@
|
|||||||
'Stop-PveContainer',
|
'Stop-PveContainer',
|
||||||
'Restart-PveContainer',
|
'Restart-PveContainer',
|
||||||
'Copy-PveContainer',
|
'Copy-PveContainer',
|
||||||
|
'Move-PveContainer',
|
||||||
'Get-PveContainerConfig',
|
'Get-PveContainerConfig',
|
||||||
'Set-PveContainerConfig',
|
'Set-PveContainerConfig',
|
||||||
# Container Snapshots (4)
|
# Container Snapshots (4)
|
||||||
@@ -171,7 +175,15 @@
|
|||||||
VariablesToExport = @()
|
VariablesToExport = @()
|
||||||
|
|
||||||
# Aliases to export from this module
|
# Aliases to export from this module
|
||||||
AliasesToExport = @()
|
AliasesToExport = @(
|
||||||
|
'cpve',
|
||||||
|
'dpve',
|
||||||
|
'gpvm',
|
||||||
|
'gpct',
|
||||||
|
'gpn',
|
||||||
|
'gpvs',
|
||||||
|
'gpt'
|
||||||
|
)
|
||||||
|
|
||||||
# Private data to pass to the module specified in RootModule
|
# Private data to pass to the module specified in RootModule
|
||||||
PrivateData = @{
|
PrivateData = @{
|
||||||
|
|||||||
Reference in New Issue
Block a user