don't split on : or = in restore command parse

This commit is contained in:
Jon Sequeira 2017-03-07 11:28:35 -08:00
parent c176b5953f
commit 1ed5b420a9
10 changed files with 80 additions and 55 deletions

View file

@ -1,7 +1,7 @@
# PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
dotnet.exe complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
C:\dev\github\cli\artifacts\win10-x64\stage2\dotnet.exe complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
}
}