capture-cli
swift run diffuse-dev --help
The CLI is a thin client of SnapshotService, ReportRenderer, SnapshotValidator, and PrivacyLedger. If a command needs new behaviour, add it to the domain package first, then expose it.
- Do not parse snapshot JSON by hand in a command.
--now/ injectedFixedTimeSourcekeep fixtures reproducible.- Validate uses
SnapshotValidator; do not duplicate rules. - Exit non-zero on validation problems.
Source: Tools/diffuse-dev/Sources/diffuse-dev. Nested Tools/AGENTS.md.