Commit 3046322
feat(compare): auto-install poppler for PDF support (#64)
## Summary
- Adds `compare_ensure_poppler` helper that auto-installs poppler when
missing (brew/apt/dnf)
- Runs during first-time asset setup (`compare_ensure_assets`) so PDF
comparison works out of the box
- Also runs on `crab compare --update-assets` to ensure poppler is
present
- Falls back to a manual install message if no supported package manager
is found
Follow-up to #63.
## Test plan
- [ ] On a machine without poppler: `crab compare file1.pdf file2.pdf` —
auto-installs poppler then compares
- [ ] `crab compare --update-assets` — re-downloads assets and ensures
poppler is installed
- [ ] On a machine with poppler already installed — skips install
silently
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b27e82b commit 3046322
1 file changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10011 | 10011 | | |
10012 | 10012 | | |
10013 | 10013 | | |
| 10014 | + | |
| 10015 | + | |
| 10016 | + | |
| 10017 | + | |
| 10018 | + | |
| 10019 | + | |
| 10020 | + | |
| 10021 | + | |
| 10022 | + | |
| 10023 | + | |
| 10024 | + | |
| 10025 | + | |
| 10026 | + | |
| 10027 | + | |
| 10028 | + | |
| 10029 | + | |
| 10030 | + | |
| 10031 | + | |
| 10032 | + | |
10014 | 10033 | | |
10015 | 10034 | | |
10016 | 10035 | | |
| |||
10033 | 10052 | | |
10034 | 10053 | | |
10035 | 10054 | | |
| 10055 | + | |
| 10056 | + | |
| 10057 | + | |
10036 | 10058 | | |
10037 | 10059 | | |
10038 | 10060 | | |
| |||
10049 | 10071 | | |
10050 | 10072 | | |
10051 | 10073 | | |
10052 | | - | |
| 10074 | + | |
| 10075 | + | |
| 10076 | + | |
10053 | 10077 | | |
10054 | 10078 | | |
10055 | 10079 | | |
| |||
0 commit comments