This repository was archived by the owner on Jun 4, 2026. It is now read-only.
Commit b9646da
fix(repair): --fix-index defaults to off (opt-in, not opt-out)
Commander's .option('--no-fix-index') makes the underlying boolean
default to TRUE, which was the opposite of what PR #15 advertised.
Running `boxel doctor repair-realm <url>` silently rewrote
index.json/cards-grid.json by default, destroying customized index
files (caught by backspace on Checkly-prerendered realm).
Flip to .option('--fix-index') across all 4 command surfaces:
- repair-realm (hidden top-level)
- repair-realms (hidden top-level)
- doctor repair-realm
- doctor repair-realms
Now the default matches the documentation: index.json is untouched
unless --fix-index is explicitly passed.
Added 2 regression tests that exercise the commander parsing directly
(the previous tests only checked the handler-level fallback, which
ran AFTER commander had already set fixIndex=true).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fe08909 commit b9646da
2 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
0 commit comments