Skip to content

Conversation

@starsep
Copy link
Contributor

@starsep starsep commented Nov 23, 2025

I used clap-cargo as it's easy to use and provides sensible default styles.
User can disable colors via NO_COLOR=1 environment variable

before after NO_COLOR=1
fblog-before fblog-color fblog-no-color

Edit: update after screenshot after removing dependency

@bomgar
Copy link
Member

bomgar commented Nov 23, 2025

My before looks different. Bold font is used for some parts. I don't want an additional dependency just for help colors.

@starsep
Copy link
Contributor Author

starsep commented Nov 23, 2025

Perhaps that's due different style of terminal? I used freeze command with monokai theme.

I don't want an additional dependency just for help colors.

Ok, I will remove dependency and specify style in the code.
Any preference where it should be defined?
I could specify it in src/app.rs or create a new file e.g. src/styles.rs

@bomgar
Copy link
Member

bomgar commented Nov 23, 2025 via email

@starsep
Copy link
Contributor Author

starsep commented Nov 23, 2025

I pushed version without clap-cargo depedency. I used clap v3 styling

@bomgar bomgar merged commit 70aab73 into brocode:master Nov 23, 2025
1 check passed
@starsep starsep deleted the colorful-help branch November 23, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants