1
- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName User - ScriptBlock {
1
+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName User - ScriptBlock {
2
2
param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
3
3
$null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
4
4
$pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
15
15
[System.Management.Automation.CompletionResult ]::new($_.Target.Name , $_.Target.Name , ' ParameterValue' , $_.Target.Name )
16
16
}
17
17
}
18
- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName Organization - ScriptBlock {
18
+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName Organization - ScriptBlock {
19
19
param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
20
20
$null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
21
21
$pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
@@ -32,7 +32,7 @@ Register-ArgumentCompleter -CommandName Connect-GitHubApp -ParameterName Organiz
32
32
[System.Management.Automation.CompletionResult ]::new($_.Target.Name , $_.Target.Name , ' ParameterValue' , $_.Target.Name )
33
33
}
34
34
}
35
- Register-ArgumentCompleter - CommandName Connect-GitHubApp - ParameterName Enterprise - ScriptBlock {
35
+ Register-ArgumentCompleter - CommandName Connect-GitHubApp , Get-GitHubAppInstallation - ParameterName Enterprise - ScriptBlock {
36
36
param ($commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters )
37
37
$null = $commandName , $parameterName , $wordToComplete , $commandAst , $fakeBoundParameters
38
38
$pattern = switch (Get-GitHubConfig - Name CompletionMode) { ' Contains' { " *$wordToComplete *" } default { " $wordToComplete *" } }
0 commit comments