Skip to content

Instantly share code, notes, and snippets.

@kpatnayakuni
Created January 22, 2020 07:26
Show Gist options
  • Select an option

  • Save kpatnayakuni/56698f074eb369cd1ba2a31bc705172d to your computer and use it in GitHub Desktop.

Select an option

Save kpatnayakuni/56698f074eb369cd1ba2a31bc705172d to your computer and use it in GitHub Desktop.
Demo Register Argument Completer
Function Get-Country
{
[CmdLetBinding()]
param
(
[parameter(Mandatory = $false)]
[ValidateSet('''North America''', 'Europe', 'Asia', 'Oceania')]
[string] $Continent,
[parameter(Mandatory = $true)]
[string] $CountryName
)
## Write your code here
Write-Host $CountryName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment