Skip to content

Conversation

@starsep
Copy link

@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
fd-before fd-colors fd-no-color

@tmccombs
Copy link
Collaborator

fd isn't a clap plugin, so using clap-cargo for it doesn't seem appropriate.

Also, doesn't fd already have colored help output?

@starsep
Copy link
Author

starsep commented Nov 23, 2025

fd isn't a clap plugin, so using clap-cargo for it doesn't seem appropriate.

Ok, I will remove dependency as it is actually quite easy to do without it.

Also, doesn't fd already have colored help output?

At the moment it doesn't. It had before upgrade to clap v4 which is using bold for headers and no longer uses colors by default, even with color feature enabled

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