Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
18 stars 7 forks source link

Add dynamic tab completion framework #233

Closed gdbarron closed 9 months ago

gdbarron commented 9 months ago

Add framework for dynamic tab completion.

TLSPDC: currently, the Path variable is enabled. For any Vdc functions with a Path parameter, you can now use tab completion to provide the path. Tabbing without a value will default to '\ved\policy'. Future versions will be aware of the type of item you are looking for and filter appropriately.

TLSPC: Application, MachineType, VSatellite, and Certificate have all been enabled. Tab completion will provide a list of names which are much easier to remember than a uuid. All functions with these parameters have been updated to accept an id or name.

To see a bash style listing where you can see a full list and select with arrow keys, be sure to set your tab key action via Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

vertigo-one commented 9 months ago

PSreadline default of CTRL+SPACE can be used if users dont want to modify the behavoir of TAB