Skip to content

feat(cli): add flameiq diff command - #24

Open
Ahorts wants to merge 3 commits into
flameiq:v2-devfrom
Ahorts:feature/flame-diff
Open

feat(cli): add flameiq diff command#24
Ahorts wants to merge 3 commits into
flameiq:v2-devfrom
Ahorts:feature/flame-diff

Conversation

@Ahorts

@Ahorts Ahorts commented Aug 22, 2026

Copy link
Copy Markdown

Summary

Closes #18.

Adds the flameiq diff <file_a> <file_b> CLI command to allow direct ad-hoc comparisons of two snapshot files without requiring a stored baseline in .flameiq/baselines/.

Changes

  • CLI: Added flameiq/cli/commands/diff.py with --provider, --json, --fail-on-regression, and --threshold flags delegating to compare_snapshots().
  • Registration: Registered diff command in flameiq/cli/main.py.
  • Tests: Added unit tests in tests/unit/test_cli/test_diff.py (pass, regression, JSON output, exit codes, threshold overrides).
  • Docs: Added flameiq diff section to docs/source/cli/reference.rst.

Verification

  • pytest tests/unit/test_cli/test_diff.py (8 passed).
  • All pre-commit hooks (ruff, mypy, commitizen) passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add flameiq diff command to compare two arbitrary snapshot files without a stored baseline

1 participant