Closed eonu closed 10 months ago
There is currently no easy way to check whether rich_click is installed and being used.
rich_click
A simple way to do this is to change:
https://github.com/eonu/feud/blob/e196e2ad15711eb0fdd9e38886c702a48081a0e3/feud/click/__init__.py#L8-L11
To:
#: Whether ``rich_click`` is installed or not. is_rich: bool try: from rich_click import * is_rich = True except ImportError: from click import * is_rich = False
Then feud.click.is_rich can be used within the code base or by the user.
feud.click.is_rich
Existing parts of the code base relying on similar checks should be updated to re-use this variable.
Fixed in #132.
Does this suggestion already exist?
Feature description
There is currently no easy way to check whether
rich_click
is installed and being used.A simple way to do this is to change:
https://github.com/eonu/feud/blob/e196e2ad15711eb0fdd9e38886c702a48081a0e3/feud/click/__init__.py#L8-L11
To:
Then
feud.click.is_rich
can be used within the code base or by the user.Existing parts of the code base relying on similar checks should be updated to re-use this variable.