7 lines
No EOL
385 B
PowerShell
7 lines
No EOL
385 B
PowerShell
# PowerShell parameter completion shim for the dotnet CLI
|
|
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
|
|
param($commandName, $wordToComplete, $cursorPosition)
|
|
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
|
|
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
|
|
}
|
|
} |