Originally created by: fu351
doberman scan currently renders a human-readable local capability risk map. An opt-in JSON mode would make the same results usable by scripts and editor integrations without changing the default experience.
src/doberman/cli/main.py — the scan commandsrc/doberman/discovery/scan.py — capability enumeration, rating, and human renderingtests/unit/test_discovery_scan.pytests/unit/test_risk_map.pyCliRunner--json option to doberman scan.--json is absent.Use CliRunner with injected or monkeypatched capability results so tests do not inspect the developer's machine. Parse stdout with Python's standard json module and compare repeated runs.
JSON output must not add raw file contents, environment values, credentials, or unredacted payloads. Core must remain standalone with no enterprise package installed, and machine-readable errors should not be interleaved with JSON stdout.
See CONTRIBUTING.md (github.com) before opening a pull request.
Ticket changed by: fu351