Commit eb0339d
committed
Address CodeRabbit review: set -e safety, docs accuracy, test isolation
- Make cache write best-effort in cmd_init (print output first, guard
mkdir/write with || true) so set -e failures don't swallow shell init
- Add || true guards to eval/source in README and help.sh setup examples
to protect users with set -e in their shell rc
- Fix misleading "auto-invalidates on update" wording in help text — the
cached setup pattern only regenerates when the cache file is missing
- Simplify cache tests to use setup()'s XDG_CACHE_HOME instead of a
shared per-PID cache_dir that can leak between tests on failure1 parent 64d7402 commit eb0339d
4 files changed
+28
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
363 | | - | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | | - | |
368 | | - | |
| 368 | + | |
| 369 | + | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
| 510 | + | |
512 | 511 | | |
513 | 512 | | |
514 | | - | |
515 | | - | |
| 513 | + | |
516 | 514 | | |
517 | 515 | | |
518 | 516 | | |
519 | | - | |
520 | 517 | | |
521 | | - | |
| 518 | + | |
522 | 519 | | |
523 | 520 | | |
524 | 521 | | |
525 | | - | |
| 522 | + | |
526 | 523 | | |
527 | 524 | | |
528 | | - | |
529 | 525 | | |
530 | 526 | | |
531 | 527 | | |
532 | | - | |
533 | 528 | | |
534 | | - | |
| 529 | + | |
535 | 530 | | |
536 | 531 | | |
537 | 532 | | |
538 | | - | |
| 533 | + | |
539 | 534 | | |
540 | 535 | | |
541 | | - | |
| 536 | + | |
542 | 537 | | |
543 | | - | |
| 538 | + | |
544 | 539 | | |
545 | | - | |
546 | 540 | | |
547 | 541 | | |
548 | 542 | | |
549 | | - | |
550 | | - | |
| 543 | + | |
551 | 544 | | |
552 | 545 | | |
553 | | - | |
554 | | - | |
| 546 | + | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | | - | |
559 | 550 | | |
560 | | - | |
| 551 | + | |
561 | 552 | | |
562 | | - | |
| 553 | + | |
563 | 554 | | |
564 | | - | |
565 | 555 | | |
0 commit comments