Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

display available formatters on a faulty "treefmt --formatters" call #270

Open
teto opened this issue Jan 17, 2024 · 0 comments
Open

display available formatters on a faulty "treefmt --formatters" call #270

teto opened this issue Jan 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@teto
Copy link

teto commented Jan 17, 2024

Is your feature request related to a problem? Please describe.

I configure the team's treefmt via treefmt-nix but the team doesnt know anything about treefmt, they run it via make lint or an equivalent. I wanted to tell them they could run treefmt -f FORMATTER but they wouldn't know which ones are available.

Describe the solution you'd like
To help discover currently configured formatters, it could be nice to list the formatters somehow. I believe this could be a good candidate, right now we have:

❯ treefmt -f
error: a value is required for '--formatters <FORMATTERS>' but none was supplied

For more information, try '--help'.

and I would suggest:

❯ treefmt -f
error: a value is required for '--formatters <FORMATTERS>' but none was supplied.

Configured formatters:
- ormolu
- black

For more information, try '--help'.

Describe alternatives you've considered

Additional context

@teto teto added the enhancement New feature or request label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant