Commit 94a5260
fix(auth): move auth guard inside try block and fix buildListCommand type
Move the auth check inside the try block so maybeRecoverWithHelp can
intercept AuthError when "help" is a positional arg. Previously the guard
fired before the try, so `sentry issue list help` while unauthenticated
would trigger a login prompt instead of showing the command help.
Also add `auth?: boolean` to buildListCommand's builderArgs type. The
spread to buildCommand already passed it through at runtime — the type
just wasn't reflecting it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1d858c8 commit 94a5260
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | 573 | | |
578 | 574 | | |
579 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
580 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
581 | 586 | | |
582 | 587 | | |
583 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
| |||
0 commit comments