Customising Click cli help with Rich #1121
-
I feel like a common setup for I'm thinking that it should be possible to override the Is this something that would be of interest to add to the Any tips or help from anyone very welcome! Also if anyone knows of something similar already in existence then that would of course be the best solution 💯 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
Already answered you somewhere else, but reference implementations: https://github.com/mlf-core/mlf-core/blob/master/mlf_core/custom_cli/click.py https://github.com/cookiejar/cookietemple/blob/master/cookietemple/custom_cli/click.py |
Beta Was this translation helpful? Give feedback.
-
Hi Phil, I think it's a good idea! It would be nicer have to closer integration of the two libs, Typer would benefit as well. I think something like this is better done as an external library. To keep dependencies down to a minimum, but also to reduce the amount of code for me to maintain. Perhaps it could be "rich-click" on Pypi. Or "click-rich". Just saw @Zethson 's reply. A standalone lib with such functionality would be fantastic. |
Beta Was this translation helpful? Give feedback.
-
Some time ago I created enrich package which adds few bits I found missing in rich. Feel free to propose a click/typer submodule to it, I use both and I am really interested about more integration. As maintenance of any package is time consuming, it makes sense to team-up for tasks like this. Some of the features may endup in rich, some not, but we can easily adapt and avoid cluttering rich itself with non mainstream stuff, especially as initially that new code would likely be... more experimental ;) |
Beta Was this translation helpful? Give feedback.
-
Some integration with click would be awesome! |
Beta Was this translation helpful? Give feedback.
Hi Phil,
I think it's a good idea! It would be nicer have to closer integration of the two libs, Typer would benefit as well.
I think something like this is better done as an external library. To keep dependencies down to a minimum, but also to reduce the amount of code for me to maintain. Perhaps it could be "rich-click" on Pypi. Or "click-rich".
Just saw @Zethson 's reply. A standalone lib with such functionality would be fantastic.