cli: add a --quiet flag to doberman scan
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: fu351
doberman scan (src/doberman/cli/main.py, scan() at line 206) always prints a human-readable risk map. For CI use (e.g. gating a script on doberman scan without wanting its output in the log) it's useful to suppress stdout while keeping the same exit code.
One new Typer option and a conditional around the existing typer.echo(render_risk_map(...)) call. No new logic.
src/doberman/cli/main.py — scan() (line 206), the typer.Option pattern already used by --path/-p on the same command.doberman scan --quiet prints nothing to stdout.doberman scan --quiet exits with the same code as a plain doberman scan for the same repo.doberman scan output is unchanged.ruff check . && ruff format --check . and lint-imports passpytest passesdoberman scan --quiet; echo "exit=$?"
doberman scan | wc -l # non-zero: proves --quiet actually differs from the default
--quiet to any other command in this issue.scan's exit-code semantics.New here? Start with CONTRIBUTING.md. Issues are labelled level-1 (docs only) through level-10 (new subsystem) — pick one at your level and climb. Comment to claim an issue before starting.
Ticket changed by: fu351