nicholasdille / PowerShell-HetznerCloud

Cmdlets for the Hetzner Cloud
Apache License 2.0
7 stars 2 forks source link

Dynamic parameters #3

Open nicholasdille opened 6 years ago

nicholasdille commented 6 years ago

Applicable to server types, images, ISOs, locations and datacenters

egbertvanderhout commented 5 years ago

@nicholasdille Did you look into the Register-ArgumentCompleter commandlet? It might be easier to use than this DynamicParameter function.

Found this article of @roggenk helpful. Kurt is working on TabExpansionPlusPlus. That module has also an example of how to cache argument completion results, with Set-CompletionData and Get-CompletionData. Might help you with #19.

nicholasdille commented 5 years ago

This is awesome. First time I hear about this. Thanks for bringing it up!