-
Notifications
You must be signed in to change notification settings - Fork 34
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
zsh: allow to eval zsh completion #159
Conversation
Allow to run `eval "$(my-prog --print-completion zsh)"` to enable completion in the current zsh environment. This change is inspired by pypa/pip#12173 and pallets/click#2544.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do you want to update the failing tests too?
Done. The tests run successful at my machine with Python 3.11 now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #159 +/- ##
=======================================
Coverage 88.88% 88.88%
=======================================
Files 3 3
Lines 360 360
=======================================
Hits 320 320
Misses 40 40 ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
@casperdcl would it be possible to include this change in a new release? |
/tag v1.7.0 3b3ed28 |
Allow to run
eval "$(my-prog --print-completion zsh)"
to enable completion in the current zsh environment.This change is inspired by pypa/pip#12173 and pallets/click#2544.