Skip to content

Upgrade Cobra for improved shell completion support#4028

Merged
mislav merged 5 commits intotrunkfrom
bump-cobra
Jul 27, 2021
Merged

Upgrade Cobra for improved shell completion support#4028
mislav merged 5 commits intotrunkfrom
bump-cobra

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

mislav added 5 commits July 21, 2021 15:01
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.
@mislav mislav merged commit f3a7d00 into trunk Jul 27, 2021
@mislav mislav deleted the bump-cobra branch July 27, 2021 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants