Closed Jaykul closed 6 years ago
Script blocks inside attributes should be highlighted...
function Validate-Attribute { [CmdletBinding()] param( [Parameter(Position=1, Mandatory=$true)] [ValidateScript({if($Script:Roles -contains $_){ $True } else { throw "$_ is not a valid Role. Please use one of: $Script:Roles"}})] [String[]]$Role ) # ... }
Script blocks inside attributes should be highlighted...