feat(v0.4.1): add seed directory checks to ctask doctor
Replaces the always-informational seed-dir block with three-state checks: INFO when the env var is unset (defaults will be used), PASS when set and the path exists, FAIL when set but the directory is missing. Only the configured-but-missing state counts as a failed check and raises the doctor exit code. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -260,7 +260,7 @@ Checks:
|
||||
|
||||
Exits 0 if all checks pass, 1 if any fail. Each failure includes a concrete fix instruction.
|
||||
|
||||
v0.3 also reports the resolved general and project seed directory paths as informational `[INFO]` lines. These do not contribute to the pass/fail count -- absent seed directories are normal and supported.
|
||||
`ctask doctor` also reports seed directory status: `[INFO]` if the `CTASK_SEED_DIR` / `CTASK_SEED_PROJECT_DIR` variable is unset (built-in defaults will be used), `[PASS]` if the variable is set and the path exists, `[FAIL]` if the variable is set but the path is missing. Only the configured-but-missing state counts as a failure.
|
||||
|
||||
**Example output:**
|
||||
|
||||
@@ -270,6 +270,8 @@ v0.3 also reports the resolved general and project seed directory paths as infor
|
||||
[PASS] Status line helper found: C:\Users\Warren\AppData\Local\ctask\bin\ctask-statusline.sh
|
||||
[PASS] Claude Code status line configured
|
||||
[PASS] Workspaces found: 5 tasks (2 archived)
|
||||
[INFO] General seed directory: not configured (using built-in defaults)
|
||||
[INFO] Project seed directory: not configured (using built-in defaults)
|
||||
|
||||
5 checks passed, 0 failed
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user