Skip to content

Commit 0e348cb

Browse files
committed
gh: do not require auth if running for shell completion
1 parent 2ef9692 commit 0e348cb

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)