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

distinguish -q and -qq #12300

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

distinguish -q and -qq #12300

wants to merge 2 commits into from

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Mar 18, 2025

The idea here is that we introduce a new stdout_important method for things that want to care about the difference between "quiet" and "silent".

This PR is WIP because it has no actual uses of stdout_important, and we should have at least one before landing this. Perhaps someone has a suggestion for commands that would really benefit from this distinction?

Fixes #10431

@Gankra Gankra added the enhancement New feature or improvement to existing functionality label Mar 18, 2025
@Gankra
Copy link
Contributor Author

Gankra commented Mar 18, 2025

Also worth noting here that any distinction we do introduce is, strictly speaking, a breaking change. As someone could have been relying on -q to suppress all output and... Now It Won't.

@Gankra Gankra added the breaking A breaking change label Mar 18, 2025
@Gankra Gankra marked this pull request as ready for review March 21, 2025 18:14
@zanieb zanieb removed the breaking A breaking change label Mar 21, 2025
pub quiet: bool,
/// Use quiet output.
///
/// `-q` will produce less stdout output while `-qq` will produce no stdout output.
Copy link
Member

Choose a reason for hiding this comment

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

Should we avoid updating this for now and track once we start using it?

I would start with

Suggested change
/// `-q` will produce less stdout output while `-qq` will produce no stdout output.
/// Repeating this option, e.g., `-qq`, will enable a silent mode in which uv will write no output to stdout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split --quiet mode into "quiet" and "silent" modes
2 participants