1- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName User - ScriptBlock {
1+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName User - ScriptBlock {
22 param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
33 $null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
44 $pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
1515 [System.Management.Automation.CompletionResult ]::new($_.Target.Name , $_.Target.Name , ' ParameterValue' , $_.Target.Name )
1616 }
1717}
18- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName Organization - ScriptBlock {
18+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName Organization - ScriptBlock {
1919 param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
2020 $null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
2121 $pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
@@ -32,7 +32,7 @@ Register-ArgumentCompleter -CommandName Connect-GitHubApp -ParameterName Organiz
3232 [System.Management.Automation.CompletionResult ]::new($_.Target.Name , $_.Target.Name , ' ParameterValue' , $_.Target.Name )
3333 }
3434}
35- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName Enterprise - ScriptBlock {
35+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName Enterprise - ScriptBlock {
3636 param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
3737 $null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
3838 $pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
0 commit comments