6 lines
375 B
PowerShell
6 lines
375 B
PowerShell
![]() |
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
|
||
|
param($commandName, $wordToComplete, $cursorPosition)
|
||
|
C:\dev\github\cli\artifacts\win10-x64\stage2\dotnet.exe complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
|
||
|
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
|
||
|
}
|
||
|
}
|