From 0c5f9ff95b52d3747c06cdddc3dce1492b3ab87a Mon Sep 17 00:00:00 2001 From: jonsequitur Date: Wed, 26 Apr 2017 11:25:29 -0700 Subject: [PATCH] change script to assume dotnet is on the path --- scripts/register-completions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/register-completions.ps1 b/scripts/register-completions.ps1 index dfc701504..88c416cd8 100644 --- a/scripts/register-completions.ps1 +++ b/scripts/register-completions.ps1 @@ -1,7 +1,7 @@ # PowerShell parameter completion shim for the dotnet CLI 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 { + dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) } } \ No newline at end of file