Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding STYLE_COMMAND #102

Merged
merged 2 commits into from
Mar 28, 2023
Merged

Adding STYLE_COMMAND #102

merged 2 commits into from
Mar 28, 2023

Conversation

acompa
Copy link

@acompa acompa commented Mar 28, 2023

As a user of rich_click, I'd like to have the option to restyle commands in the command table. Commands currently have a hard-coded bold cyan style which cannot be reconfigured.

This PR introduces STYLE_COMMAND, a new option exposed to user configuration. It's currently defaulted to "bold cyan" to preserve consistent styling.

Before:

image

After:

image

Copy link
Owner

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
@ewels ewels merged commit 94527e6 into ewels:main Mar 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants