-
Notifications
You must be signed in to change notification settings - Fork 1
Missing silent option and OptionResolver utility class #2
Copy link
Copy link
Open
Labels
Description
Description
The current configuration system doesn't implement the silent option and lacks a reusable OptionResolver utility class as specified in CLAUDE.md.
Current Issue
- No
--silentoption available in CLI - Configuration priority logic is duplicated across commands
- No reusable component for handling configuration resolution
- Commands don't follow DDD and Clean Code principles for configuration handling
Expected Behavior
According to CLAUDE.md:
- Commands should have a
--silentoption that skips interactive prompts - All configuration resolution should use a reusable
OptionResolverclass - The OptionResolver should handle the complete priority chain and interactive logic
Tasks
- Add
--silentoption to CLI - Create
OptionResolverutility class insrc/utils/option-resolver.ts - Implement priority chain resolution (CLI → ENV → Interactive → Project → User)
- Handle silent mode logic (CASE 1: ask with default, CASE 2: use default or error)
- Add input validation support
- Refactor all commands to use OptionResolver
- Add tests for OptionResolver class
- Update CLAUDE.md with implementation details
Reactions are currently unavailable