feat: wtcraft doctor and migrate commands#31
Merged
Conversation
- 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]>
ced0789 to
2633c24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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]— runsinitto fill missing scaffold, then removes known legacy files. The--yesflag skips the prompt for CI.Note:
read_cli_versionreturnsunknownwhen 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