cli: add `--quiet` to `doberman demo` so it can run as a CI smoke test
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: fu351
Originally owned by: blackcoderx
doberman demo runs the scripted attack reel through the real engine, prints one narrated line per scenario, a summary table, and exits non-zero when a scenario's verdict doesn't match (src/doberman/cli/main.py:1430 onward). That makes it a useful "is the engine alive" check in a pipeline, except there's no way to silence the narration: its options are --path, --mode, --fast. scan already has the flag this needs (--quiet, :248-253: "Suppress human-readable stdout... useful for CI").
What to do
quiet: bool = typer.Option(False, "--quiet", "-q", help=...) to demo, copied from scan's option.on_scenario echo and the closing "Run doberman dash" hint; keep the summary table (or a one-line "N/N scenarios matched") and the exit code exactly as they are.tests/unit/test_cli_demo_quiet.py: demo --fast --quiet prints far fewer lines than demo --fast, and the exit code is identical.Display only; the scenarios and the engine path are untouched.
Originally posted by: blackcoderx
Claiming this one — will add
--quiettodoberman demofollowing thescan --quietpattern.Ticket changed by: fu351