Phase 5: Every remaining command declares #520
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!520
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-463-phase-05"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 05 implementation for IW-463.
Files
Browse changed files: https://code.iterative.works/iterative-works/iw-cli/-/blob/IW-463-phase-05/
Declares `doctor`'s three switches (--env, --quality, --fix) into a DoctorOptions case class. The --fix-implies-Quality / --fix-beats---env precedence rule moves to Doctor.filterCategoryFor, a pure function beside the command rather than a leaf (D5.2) — it depends on a sibling flag, not on --env's own value. --fix and --env's `does` text names the interaction, since the registry walk only checks non-blank, not complete (Risks 4). DoctorCliFlags and its test are deleted; DoctorCliFlagsTest's three behavioural cases move onto a new DoctorPrecedenceTest exercising filterCategoryFor directly. Its fourth case ("ignores unrelated flags") is not ported — that behaviour is exactly what this phase removes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WehHdHp9MRKJkrhGFiKNxa