[pitboss/grind] cleanup session-0004 (20260522T163126Z-7d60)

This commit is contained in:
pitboss 2026-05-22 13:17:28 -05:00
parent 0e4e393000
commit 0d4ab22c4c
7 changed files with 119 additions and 45 deletions

View file

@ -36,6 +36,12 @@ impl Commands {
&& (fmt == OutputFormat::Json || fmt == OutputFormat::Sarif)
}
/// Whether the user explicitly asked this invocation to suppress
/// human-readable output.
pub fn quiet_requested(&self) -> bool {
matches!(self, Commands::Scan { quiet: true, .. })
}
/// Whether this is a long-running server command (skip timing output).
pub fn is_serve(&self) -> bool {
matches!(self, Commands::Serve { .. })