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
Closes#36.
`init_manifest` previously hardcoded TOML strings for the octad
defaults. Any change to `OctadConfig::default()` silently diverged
from what `init` wrote. Replace the hardcoded body with
`render_manifest_template(database, name)`, which builds the TOML
from `ProjectConfig::default()`, `OctadConfig::default()` and
`SidecarConfig::default()`. The rendered output now tracks code.
Add two flags to `Commands::Init`:
- `--name <NAME>` — set `[project].name` directly so a new repo
doesn't need a post-init edit.
- `--force` — overwrite an existing `verisimiser.toml` instead of
bailing. Default behaviour (no flag) still refuses to clobber.
Three unit tests in `manifest::init_template_tests`:
- `template_round_trips_through_toml` — rendered template parses as
`Manifest` and every octad field equals `OctadConfig::default()`.
- `template_uses_explicit_name_when_provided` — passing `Some("name")`
produces `[project].name = "name"`.
- `template_falls_back_to_default_name` — passing `None` uses the
default project name.
`cargo clippy --all-targets -- -D warnings` clean; 32 unit tests pass.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments