Skip to content

Commit

Permalink
Fix typos of Register-ArgumentCompleter parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
krymtkts committed Dec 9, 2023
1 parent 91da06e commit 56ca9d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/register-completions.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PowerShell parameter completion shim for the dotnet CLI
# 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', $_)
}
}
param($wordToComplete, $commandAst, $cursorPosition)
dotnet complete --position $cursorPosition "$commandAst" | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
}
}

0 comments on commit 56ca9d0

Please sign in to comment.