Skip to content

Commit 321aca9

Browse files
author
Marvin Zhang
committed
feat(changelog): add safe re-initialization workflow and interactive strategy for existing projects
1 parent 246ac59 commit 321aca9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- **Safe re-initialization workflow** - Improved `lean-spec init` for existing projects
12+
- New `-f, --force` flag to force re-initialization (resets config, preserves specs)
13+
- Interactive strategy selection when project is already initialized:
14+
- **Upgrade configuration** (recommended) - Merges config with latest defaults, preserves all user content
15+
- **Reset configuration** - Fresh config from template, keeps `specs/` directory
16+
- **Full reset** - Removes everything with confirmation prompt
17+
- **Cancel** - Exit without changes
18+
- Safe defaults: `-y` flag defaults to upgrade (safest), `-f` flag resets config only
19+
- Shows spec count when re-initializing to inform user's decision
20+
- Confirmation required for destructive "full reset" option
21+
1022
## [0.2.7] - 2025-11-26
1123

1224
### Added

0 commit comments

Comments
 (0)