Commit 0998686
refactor(init): use shared YES_FLAG and add -y alias constant (#681)
## Summary
Applies the same sharing pattern we use for
`DRY_RUN_FLAG`/`DRY_RUN_ALIASES` to `YES_FLAG`. Adds a `YES_ALIASES`
constant so non-delete commands can reuse `--yes`/`-y` without inlining.
Init overrides the brief to keep its "Non-interactive mode (accept
defaults)" wording.
Follows #676.
## Changes
- Add `YES_ALIASES` export to `mutate-command.ts` (mirrors
`DRY_RUN_ALIASES`)
- Replace init's inline `--yes` definition with `{ ...YES_FLAG, brief:
"..." }`
## Test Plan
- `npx tsc --noEmit` passes
- `sentry-cli init --help` still shows "Non-interactive mode (accept
defaults)" for `--yes`
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 264c632 commit 0998686
2 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
| |||
0 commit comments