src/internal/ParameterCompleters.ps1
$ContainerRegistryNameCompleter = { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) return Get-AzContainerRegistry | Select-Object -ExpandProperty Name } # TODO: contains a module dependency <# $ImageCompleter = { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) $possibleValues = Get-DockerImage if ($fakeBoundParameters.ContainsKey('ContainerRegistryName')) { $ContainerRegistryName = $fakeBoundParameters.ContainerRegistryName $possibleValues | Where-Object -FilterScript { $_.ImageName -like "$ContainerRegistryName*" } | ForEach-Object { ($_.ImageName).Split('/', 2)[1] } } else { $possibleValues.Values | ForEach-Object { $_ } } } #> $TemplateNameCompleter = { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) return Get-Item .\build\templates\* -Include *.json | Select-Object -ExpandProperty Name } $ResourceGroupNameCompleter = { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) return Get-AzResourceGroup | Select-Object -ExpandProperty ResourceGroupName } |