mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
validate set for new functions
This commit is contained in:
@@ -69,6 +69,7 @@ function Get-VisualStudioInstallation {
|
||||
Param
|
||||
(
|
||||
[Parameter(Mandatory)]
|
||||
[ValidateSet('VS','BuildTools')]
|
||||
[String] $VSInstallType
|
||||
)
|
||||
|
||||
@@ -92,6 +93,7 @@ function Get-VisualStudioComponents {
|
||||
Param
|
||||
(
|
||||
[Parameter(Mandatory)]
|
||||
[ValidateSet('VS','BuildTools')]
|
||||
[String] $VSInstallType
|
||||
)
|
||||
(Get-VisualStudioInstallation -VSInstallType $VSInstallType).Packages | Where-Object type -in 'Component', 'Workload' |
|
||||
|
||||
Reference in New Issue
Block a user