iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
362 stars 35 forks source link

zsh: allow to eval zsh completion #159

Closed bjoernricks closed 7 months ago

bjoernricks commented 7 months ago

Allow to run eval "$(my-prog --print-completion zsh)" to enable completion in the current zsh environment.

This change is inspired by https://github.com/pypa/pip/pull/12173 and https://github.com/pallets/click/pull/2544.

bjoernricks commented 7 months ago

Thanks! Do you want to update the failing tests too?

Done. The tests run successful at my machine with Python 3.11 now.

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (eb12748) 88.88% compared to head (6b3c4f3) 88.88%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #159 +/- ## ======================================= Coverage 88.88% 88.88% ======================================= Files 3 3 Lines 360 360 ======================================= Hits 320 320 Misses 40 40 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

bjoernricks commented 7 months ago

@casperdcl would it be possible to include this change in a new release?

casperdcl commented 6 months ago

/tag v1.7.0 3b3ed28