Problem
The run command dispatcher repeats Ninja generation and file-writing logic across different branches, leading to code duplication.
Proposed Solution
Extract dedicated handlers for each command to:
- Reduce duplication
- Improve separation of concerns
- Make the dispatcher more maintainable
Each handler would encapsulate the specific logic for its command type.
Context