Skip to content

v0.1.3 — init --force

Choose a tag to compare

@justi justi released this 24 Apr 00:23
· 33 commits to main since this release
17be649

Small UX follow-up to v0.1.2's PURPOSE chain.

revive init --force (or -f) regenerates PURPOSE from the new chain while preserving user-edited INVARIANTS and GOTCHAS. Motivated by real upgrade flow: after the chain shipped, existing .revive/static.md files still held old-extractor output, and there was no clean way to regenerate without manual rm.

Before:

$ revive init
exists: .revive/static.md (not overwriting)

After:

$ revive init --force
regenerated: .revive/static.md (INVARIANTS/GOTCHAS preserved)

Tests: 59/59 pass (+4 new cases for --force, -f, preservation, unknown-option rejection).