?
PLOW-40
feature
Created: 2025-12-21 Updated: 2025-12-21
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-21
## Implementation Summary Added `--mermaid/-m` flag to the `visualize` command as specified in the acceptance criteria. ### Changes Made **`src/trckr_plow/cli.py`** (lines 699-730): - Added `--mermaid/-m` flag option to visualize command - Flag is documented as "default behavior" since mermaid is already the default (per PLOW-41) - Updated docstring examples to show `--mermaid` usage - `--ascii` flag still overrides `--mermaid` for terminal output **`tests/test_cli.py`** (lines 806-848): - Added 6 new tests for `--mermaid` flag ### Acceptance Criteria Verification - [x] `trckr-plow visualize --mermaid` generates SVG and opens viewer - [x] `trckr-plow visualize --mermaid --step 1` highlights step 1 - [x] Missing mmdc shows helpful error with install command - [x] Works on macOS and Linux - [x] Temp .mmd file cleaned up after rendering - [x] SVG file persists in /tmp for user inspection All 796 tests pass.