prettify parameters and stuff
This commit is contained in:
parent
2a51e76b07
commit
c125ad0acd
@ -56,14 +56,16 @@ function Disconnect-From {
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
|
|
||||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
|
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
|
||||||
'PSAvoidGlobalVars',
|
'PSAvoidGlobalVars',
|
||||||
'',
|
'',
|
||||||
Justification = 'Wrapping existing global vars from external modules'
|
Justification = 'Wrapping existing global vars from external modules'
|
||||||
)]
|
)]
|
||||||
|
|
||||||
param (
|
param (
|
||||||
[Parameter(Mandatory = $true)]
|
[Parameter(Mandatory = $true)]
|
||||||
[string]$RemoteHost,
|
[string] $RemoteHost,
|
||||||
|
|
||||||
[Parameter(Mandatory = $true)]
|
[Parameter(Mandatory = $true)]
|
||||||
[ValidateSet(
|
[ValidateSet(
|
||||||
@ -77,10 +79,10 @@ function Disconnect-From {
|
|||||||
'VMware',
|
'VMware',
|
||||||
'VMwareCisServer'
|
'VMwareCisServer'
|
||||||
)]
|
)]
|
||||||
[string]$Type,
|
[string] $Type,
|
||||||
|
|
||||||
[Parameter(Mandatory = $false)]
|
[Parameter(Mandatory = $false)]
|
||||||
[switch]$Force
|
[switch] $Force
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
|
Loading…
Reference in New Issue
Block a user