dev-python/click has out-of-the-box support for generating shell
completions:
https://click.palletsprojects.com/en/stable/shell-completion/
Since it's a popular library, multiple packages can benefit from a
streamlined way to generate and install shell completions.
Three most obvious places for this functionality would be:
- A new eclass
I'm leaning towards this option: just write it and leave in ::guru
for everyone to use. I didn't want to start this discussion in the
first place but was asked by a fellow member.
And anyway I don't know how to name such eclass, would like to see
your suggestions...
- shell-completions.eclass
Its name fits the purpose, but it would be a mess to start extending
such a simple eclass.
- distutils-r1.eclass
Something like distutils_enable_sphinx but for shell completions.
I also don't want to discuss implementation details before any code is
written, it would be just empty talk right now.
So, am I right that this functionality should be implemented outside of
any existing eclasses. And if so, how should it be named?
---
(i'm subscribed to this list with '+nomail' option, so remember to cc@
me in replies)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)