prisma
prisma copied to clipboard
Add silent / quiet global CLI flag
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.