We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f8f14 commit b2dc7f9Copy full SHA for b2dc7f9
reference/7.5/Microsoft.PowerShell.Core/Register-ArgumentCompleter.md
@@ -150,12 +150,14 @@ example adds tab-completion for the `dotnet` Command Line Interface (CLI).
150
```powershell
151
$scriptblock = {
152
param(
153
+ $commandName,
154
+ $parameterName,
155
$wordToComplete,
156
$commandAst,
- $cursorPosition
157
+ $fakeBoundParameters
158
)
159
- dotnet complete --position $cursorPosition $commandAst.ToString() | ForEach-Object {
160
+ dotnet complete --position $wordToComplete $parameterName | ForEach-Object {
161
[System.Management.Automation.CompletionResult]::new(
162
$_, # completionText
163
$_, # listItemText
0 commit comments