Skip to content

feat: wtcraft doctor and migrate commands#31

Merged
zywkloo merged 2 commits into
mainfrom
feat/version-and-doctor
Jun 14, 2026
Merged

feat: wtcraft doctor and migrate commands#31
zywkloo merged 2 commits into
mainfrom
feat/version-and-doctor

Conversation

@zywkloo

@zywkloo zywkloo commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Two new commands (rebased clean on main after #33; full suite green). The earlier version/docs content from this branch was split out: docs → #35, version resolution → #36.

  • wtcraft doctor — diagnoses the install + repo scaffold: CLI path/version, other wtcraft on PATH (shadow detection), scaffold completeness, legacy-file detection, template dir, git credential helper. The shadow + version check is exactly what surfaces a stale installed binary.
  • wtcraft migrate [--yes] — runs init to fill missing scaffold, then removes known legacy files. The --yes flag skips the prompt for CI.

Note: read_cli_version returns unknown when installed without an adjacent manifest — a pre-existing main-level limitation (shipped in #33), fixed separately in #36. doctor merely makes it visible.

🤖 Generated with Claude Code

zywkloo and others added 2 commits June 13, 2026 22:40
- Remove hardcoded VERSION; use read_cli_version() from PR #33
- Add --yes flag to migrate for non-interactive usage
- Detect non-interactive stdin and skip prompt gracefully
- Add dedicated usage_doctor and usage_migrate help text
- Add E2E tests for version, doctor, migrate --yes, and help

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@zywkloo zywkloo force-pushed the feat/version-and-doctor branch from ced0789 to 2633c24 Compare June 14, 2026 05:46
@zywkloo zywkloo changed the title feat: add version, doctor, and migrate commands feat: wtcraft doctor and migrate commands Jun 14, 2026
@zywkloo zywkloo merged commit 62b1587 into main Jun 14, 2026
1 check passed
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