-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
docsenhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcomewindowsRelated to Windows hosts or runnersRelated to Windows hosts or runners
Description
Describe the feature or problem you’d like to solve
The page https://cli.github.com/manual/gh_completion explains to use the completions by adding eval "$(gh completion)" to a profile file.
For PowerShell, the equivalent command is gh completion -s powershell | iex, which produces the following error:
> gh completion -s powershell | iex
iex : At line:1 char:67
+ Register-ArgumentCompleter -Native -CommandName 'gh' -ScriptBlock {
+ ~
Missing closing '}' in statement block or type definition.
At line:1 char:31
+ gh completion -s powershell | iex
+ ~~~
+ CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
+ FullyQualifiedErrorId : MissingEndCurlyBrace,Microsoft.PowerShell.Commands.InvokeExpressionCommandProposed solution
Explain how to use the PowerShell completions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsenhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcomewindowsRelated to Windows hosts or runnersRelated to Windows hosts or runners