PowerShell cmdlet parameter value tab completion

后端 未结 3 1194
暖寄归人
暖寄归人 2020-12-30 06:40

How do you implement the parameter tab completion for PowerShell functions or cmdlets like Get-Service and Get-Process in PowerShell 3.0?

I realise ValidateSet works

3条回答
  •  旧时难觅i
    2020-12-30 07:36

    Check the TabExpansionPlusPlus module on github, written by a former PowerShell team magician.

    https://github.com/lzybkr/TabExpansionPlusPlus#readme

提交回复
热议问题