Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Cobra for improved shell completion support #4028

Merged
merged 5 commits into from Jul 27, 2021
Merged

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Jul 21, 2021

Example:

gh repo create -l g<Tab>

image

https://github.com/spf13/cobra/releases/tag/v1.2.0
Followup to #3746

The "nospace" directive instructs the shell completion logic to avoid
adding a space after completing the word. However, this feature was
broken in an older Cobra, and users still saw a space character added.
In most case we want the space because we anticipate that the user might
want to add extra arguments to the command.
@cliAutomation cliAutomation added this to Needs review 🤔 in The GitHub CLI Jul 21, 2021
The GitHub CLI automation moved this from Needs review 🤔 to Needs to be merged 🎉 Jul 26, 2021
@mislav mislav merged commit f3a7d00 into trunk Jul 27, 2021
The GitHub CLI automation moved this from Needs to be merged 🎉 to Pending Release 🥚 Jul 27, 2021
@mislav mislav deleted the bump-cobra branch July 27, 2021 14:34
@github-actions github-actions bot moved this from Pending Release 🥚 to Done 💤 in The GitHub CLI Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

None yet

2 participants