rome / tools

Unified developer tools for JavaScript, TypeScript, and the web
https://docs.rome.tools/
MIT License
23.77k stars 663 forks source link

☂️ CLI #2316

Closed NicholasLYang closed 2 years ago

NicholasLYang commented 2 years ago

Description

Description

The CLI is in an alpha state and needs some features/bug fixes

Tasks

ematipico commented 2 years ago

About the third checkbox, it already does that: https://rome.tools/#use-the-formatter-with-the-cli

NicholasLYang commented 2 years ago

With CI mode? What if I want to run the formatter and not exit if the files would get modified?

MichaReiser commented 2 years ago

With CI mode? What if I want to run the formatter and not exit if the files would get modified?

What do you mean by not exiting? Do you mean that the program shouldn't end with a non zero exit code?

ematipico commented 2 years ago

With CI mode? What if I want to run the formatter and not exit if the files would get modified?

Then the description of the requirement would require more details, so we can understand what exactly we need.

NicholasLYang commented 2 years ago

I suppose we can codify it as a benchmark mode. Run, format the files but do not write them, so that you can run multiple iterations.

ematipico commented 2 years ago

Closing, as the log level it's not a priority and we haven't a meaty document with features that we need for the CLI.

Feel free to open it once we have a project in mind