Skip to content

Commit 080c5cc

Browse files
authored
Merge pull request #271 from j178/gh-no-auth-when-complete
gh: do not require auth if running for shell completion
2 parents 2ef9692 + 0e348cb commit 080c5cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/github/gh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func GitHubCLI() schema.Executable {
1515
NeedsAuth: needsauth.IfAll(
1616
needsauth.NotForHelpOrVersion(),
1717
needsauth.NotWithoutArgs(),
18+
needsauth.NotWhenContainsArgs("__complete"),
1819
),
1920
Uses: []schema.CredentialUsage{
2021
{

0 commit comments

Comments
 (0)