Repository navigation
feat(cmd): Subcommands for the completion command - #8314
Merged
bacongobbler merged 1 commit intoJul 7, 2020
Merged
Conversation
Making each shell a subcommand of the 'completion' has multiple advantages: - simplifies the code, - allows to have different flags for each shell, for example, a future `--no-descriptions` flag for fish only, - allows to tailor the help text per shell. Signed-off-by: Marc Khouzam <[email protected]>
Member
Author
|
For the sake of transparency, my plan is that the proposed |
Member
Author
|
If release 3.3 still has some room (time-wise), I wouldn't mind a review on this small change to unblock #8111 which brings support for Fish completion. |
bacongobbler
approved these changes
Jul 7, 2020
bacongobbler
left a comment
Member
There was a problem hiding this comment.
code LGTM. Given that 3.3.0-rc.1 is about to be released, I'll go ahead and merge this one in. Thanks @marckhouzam!
Member
Author
|
Thanks for getting this into 3.3 @bacongobbler! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Fixes #8313.
This PR converts the
bashandzsharguments of thecompletioncommand to sub-commands.Making each shell a subcommand of the
completioncommand has multiple advantages:for example, a future
--no-descriptionsflag forfishonly,Special notes for your reviewer:
This should be done before #8111 is released to users, or else it would technically become a breaking change. This is because #8111 will add a new
--no-descriptionsflag to thecompletioncommand, and without this PR, we cannot restrict it to thefishshell.The PR also improves on the help text for each shell.
If applicable: