Commit a5ca263
refactor(init): use shared DRY_RUN_FLAG and add -n alias (#676)
## Summary
- Replace inline `--dry-run` flag definition with shared `DRY_RUN_FLAG`
from `lib/mutate-command.ts`
- Add missing `-n` alias via `DRY_RUN_ALIASES` — every other mutation
command has this
## Test plan
- [ ] `sentry init --dry-run` still works
- [ ] `sentry init -n` now works (was missing before)
- [ ] `sentry init --help` shows dry-run flag
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent ca14e7c commit a5ca263
File tree
4 files changed
+7
-9
lines changed- docs/src/content/docs/commands
- plugins/sentry-cli/skills/sentry-cli/references
- src
- commands
- lib/init
4 files changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
217 | 214 | | |
218 | 215 | | |
219 | 216 | | |
| |||
230 | 227 | | |
231 | 228 | | |
232 | 229 | | |
| 230 | + | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
882 | | - | |
| 881 | + | |
| 882 | + | |
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
| |||
0 commit comments