You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement barzel init --force to overwrite existing .barzel.toml (#49)
* feat: implement barzel init --force to overwrite existing .barzel.toml
- Add --force flag to 'barzel init' CLI command
- Add force: bool field to StdioRequest for {"command":"init"}
- run_init now returns InitOutcome (Created/Skipped/Overwritten)
- Existing config is skipped by default; overwritten only when force=true
- stdio init response includes config_status field with the outcome
- README updated with --force example and stdio force field
* fix: conditional init message and document config_status in README
- init response message is now outcome-conditional:
created -> 'project initialized'
skipped -> 'config already exists'
overwritten -> 'config overwritten'
- README documents config_status table so agents know the three values
- Test verifies message/status mapping is stable
* refactor: extract init_status_and_message helper; test calls production code
Test now calls the same init_status_and_message() used by handle_stdio
instead of duplicating the match, so it guards the actual stdio contract.
0 commit comments