Open jdhitsolutions opened 2 years ago
I mostly agree but do people actually use the Noun/Verb parameters for Get-Command? I always do it "manually" with wildcards like Get-*
or *-VM
.
I use the noun often when I'm teaching PowerShell. And I definitely run commands like Get-command -module hyper-v
so being able to run an equivalent Get-UsefulArgumentCompleter -module Hyper-V
would be useful.
The
Get-UsefulArgumentCompleter
is a good start, but I think there is a lot of value you could add. For one, it shouldn't be that difficult to include associated module for each command. Because you have so many completers, filtering the list is cumbersome. You could add parameters to filter by the module name. I'd love to be able to find completers based on a module. Now that I think of it, you could use the module name as a value for the option set inimport-UsefulArgumentCompleterSet
. Maybe even change it use the module name.I also think you could enhance
Get-UsefulArgumentCompleter
to be more like Get-Command. Let me filter on the command name, the verb, or the noun. Yes, I could do that now with Where-Object, but the easier you make your command to use, the more people will use it.