prettify parameters and stuff

This commit is contained in:
pinguinfuss 2023-03-09 20:27:38 +01:00
parent 2a51e76b07
commit c125ad0acd

View File

@ -56,14 +56,16 @@ function Disconnect-From {
#>
[CmdletBinding()]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSAvoidGlobalVars',
'',
Justification = 'Wrapping existing global vars from external modules'
)]
param (
[Parameter(Mandatory = $true)]
[string]$RemoteHost,
[string] $RemoteHost,
[Parameter(Mandatory = $true)]
[ValidateSet(
@ -77,10 +79,10 @@ function Disconnect-From {
'VMware',
'VMwareCisServer'
)]
[string]$Type,
[string] $Type,
[Parameter(Mandatory = $false)]
[switch]$Force
[switch] $Force
)
begin {