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

Smarter init command? #197

Open
aldoborrero opened this issue Dec 11, 2022 · 1 comment
Open

Smarter init command? #197

aldoborrero opened this issue Dec 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@aldoborrero
Copy link
Contributor

Rationale

Currently, we can use treefmt --init to create a barebone template of treefmt.toml. But it's a very empty one, having later to customize it by the user.

A better approach could potentially be presented to the user with a wizard option like Yeoman's, where by answering questions (with sane defaults) it can fill semiautomatically the treefmt.toml file for common languages.

@aldoborrero aldoborrero added the enhancement New feature or request label Dec 11, 2022
@zimbatm
Copy link
Member

zimbatm commented Dec 11, 2022

The init command could auto-detect what languages are being used in the repo and make recommendations based on what is available on the PATH.

The main issue that I see is that it requires maintaining that mapping (and users have to wait for the next release to get it), but it might also encourage users to share their configs.

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

2 participants