|
|
|
|
|
by juki
1498 days ago
|
|
The Verb-Noun convention isn't that bad once you learn the approved verbs well enough to know which one the command you're looking for would be using. After you have the right verb, tab-completion works fine. Also, `Get-Command` (built-in alias `gcm`) is very helpful. E.g. PS> gcm *build*
CommandType Name Version Source
----------- ---- ------- ------
Alias Build-Checkpoint 5.8.6 InvokeBuild
Alias Build-Parallel 5.8.6 InvokeBuild
Alias Invoke-Build 5.8.6 InvokeBuild
Application mcbuilder.exe 10.0.2200… C:\Windows\system32\mcbuilder.exe
Or find everything from a module: PS> gcm -m InvokeBuild
CommandType Name Version Source
----------- ---- ------- ------
Alias Build-Checkpoint 5.8.6 InvokeBuild
Alias Build-Parallel 5.8.6 InvokeBuild
Alias Invoke-Build 5.8.6 InvokeBuild
And at least if you use `MenuComplete` for tab (`Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete` in your profile), you can also just write `*<noun>` and hit tab. It will offer completions regardless of the verb. |
|