-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix zsh completion scripts #1062
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1062 +/- ##
=======================================
Coverage 72.83% 72.83%
=======================================
Files 33 33
Lines 2474 2474
=======================================
Hits 1802 1802
Misses 565 565
Partials 107 107 Continue to review full report at Codecov.
|
This fix completion when argument startswith - And prevent completing a space when no candidates
Thanks for the fix! Would you mind providing examples of what was broken before and what's changed? Between the PR description and the code changed, I'm having trouble understanding what exactly the issue was. |
Before the change, if you type The problem here is the The change is based on the code of bash completion script, cli/autocomplete/bash_autocomplete Lines 10 to 14 in cc46cf9
|
Fix completion when argument startswith `-` Merged in upstream urfave/cli#1062 Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Fix completion when argument startswith `-` Merged in upstream urfave/cli#1062 Signed-off-by: Shengjing Zhu <zhsj@debian.org>
Fix completion when argument startswith `-` Merged in upstream urfave/cli#1062 Signed-off-by: Shengjing Zhu <zhsj@debian.org>
What type of PR is this?
(REQUIRED)
What this PR does / why we need it:
(REQUIRED)
This fix completion when argument startswith -
And prevent completing a space when no candidates
Which issue(s) this PR fixes:
(REQUIRED)
Release Notes
(REQUIRED)