prisma icon indicating copy to clipboard operation
prisma copied to clipboard

Add silent / quiet global CLI flag

Open paulomarg opened this issue 3 months ago • 2 comments

Closes #23192

As mentioned in the issue, there are some scenarios where we want to omit the regular message returned from a command, where the output might make it harder to spot legitimate issues, or bloats the output of some scripts.

To achieve that, this PR introduces a new global --quiet flag (aliased to --silent if I understood the setup correctly 😄) that simply ignores the message returned from a command, unless that is an Error.

With this, users can toggle the regular output off but still catch any errors thrown by commands so we don't accidentally hide problems. Messages logged directly by a command (assuming no normal flow messages are logged that way) are still output normally.

paulomarg avatar May 17 '24 15:05 paulomarg