Skip to content

Conversation

@ematipico
Copy link
Member

@ematipico ematipico commented Jun 7, 2025

Summary

This PR adds a new --verbosity argument, and closs #6084

The --verbosity argument is going to replace --verbose. The reason I added a new argument that goes in "conflict" with --verbose is because I wanted to avoid having --verbose and --minimal. Plus, with an enum, we can provide more functionality in the future.

To replicate --verbose (which is deprecated, but still available), users will use --verbosity=full.

Please bikeshed and provide better names if you see fit.

The new feature is --verbosity=minimal, which prints minimal diagnostics (only the header).

Test Plan

Updated tests, added new diagnostics, added new tests.

@github-actions github-actions bot added A-CLI Area: CLI A-Diagnostic Area: diagnostocis labels Jun 7, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jul 3, 2025

🦋 Changeset detected

Latest commit: 9985303

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@biomejs/biome Minor
@biomejs/cli-win32-x64 Minor
@biomejs/cli-win32-arm64 Minor
@biomejs/cli-darwin-x64 Minor
@biomejs/cli-darwin-arm64 Minor
@biomejs/cli-linux-x64 Minor
@biomejs/cli-linux-arm64 Minor
@biomejs/cli-linux-x64-musl Minor
@biomejs/cli-linux-arm64-musl Minor
@biomejs/wasm-web Minor
@biomejs/wasm-bundler Minor
@biomejs/wasm-nodejs Minor
@biomejs/backend-jsonrpc Patch
@biomejs/js-api Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ematipico ematipico changed the title feat(cli): minimal verbosity feat(cli): verbosity argument Jul 3, 2025
@ematipico ematipico marked this pull request as ready for review July 3, 2025 14:30
@ematipico ematipico added this to the Biome 2.1 milestone Jul 3, 2025
@ematipico ematipico requested review from a team July 3, 2025 14:30
Copy link
Contributor

@arendjr arendjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

just having some doubts around the terminology ofverbosity=minimal. Minimal means as little as can be, so effectively a verbosity of none unless absolutely necessary. Printing headers of diagnostics seems to clash with that. Maybe verbosity=headers or verbosity=summary?

"@biomejs/biome": minor
---

Added a new CLI flag `--minimal` that prints only the header of the diagnostics.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks oudated?

@ematipico
Copy link
Member Author

Actually, I changed my mind. The solution always felt off to me, and it seems we're deprecating stuff just to provide some information we already have.

I close this PR, and improve the summary reporter

@ematipico ematipico closed this Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Diagnostic Area: diagnostocis

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants