Skip to content

feat(cli): name this version's config template when doctor finds no chartula.yaml - #329

Merged
goldbarth merged 1 commit into
mainfrom
doctor-config-template
Oct 6, 2026
Merged

goldbarth merged 1 commit into
mainfrom
doctor-config-template

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #295, which added chartula doctor (#254), and replaces the planned chartula init.

  • Why: a user who installed the binary has no copy of the repository, so chartula.example.yaml existed for them only if they knew where to look. doctor already said that no chartula.yaml was found and the defaults apply; it now also says where the template is.
  • No chartula init: what it would have set up is covered already. doctor names a missing chartula.yaml, docs/providers.md gives the export lines per provider, and the endpoint and key variable may not go into the file anyway (ADR 0003). All that init could still write is llm.model, which is not worth a command.
  • The link points at this version's tag, not at main: an unknown key in chartula.yaml is refused, and main may already list a key the installed version does not know. A dev build between a version bump and its tag links a tag that does not exist yet; that only affects contributors.
  • Docs: the sample doctor output in getting-started.md and troubleshooting.md shows the new line.

Verified:

  • The built CLI, run as doctor in a fresh checkout without chartula.yaml, prints the line under config; the linked URL for v0.1.0-preview.3 answers 200.
  • With a chartula.yaml, the line is absent.

Tests: DoctorCommandTests gains one test for the link and one assertion that a present file gets no hint; 19 of 19 pass.

@goldbarth
goldbarth merged commit eedad1e into main Oct 6, 2026
4 checks passed
@goldbarth
goldbarth deleted the doctor-config-template branch October 6, 2026 12:59
@goldbarth goldbarth self-assigned this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant