You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: extract CLI wrappers into src/commands/ directory (Phase 3.2) (#393)
* feat: extract CLI wrappers into src/commands/ directory (Phase 3.2)
Separate CLI display logic from data functions across 15 analysis modules.
Each command now lives in src/commands/<name>.js while *Data() functions
remain in their original modules (preserving MCP dynamic imports).
- Create 16 command files in src/commands/ (audit, batch, cfg, check,
cochange, communities, complexity, dataflow, flow, branch-compare,
manifesto, owners, sequence, structure, triage, query barrel)
- Add shared CommandRunner lifecycle in src/infrastructure/command-runner.js
- Move result-formatter.js and test-filter.js to src/infrastructure/
- Update all imports in cli.js, index.js, queries-cli.js, and 7 other modules
- Remove ~1,059 lines of CLI wrapper code from original analysis modules
Impact: 33 functions changed, 19 affected
* fix: remove unused command-runner.js, correct ROADMAP
CommandRunner was created but never adopted by any command file — the
16 commands vary too much (async, multi-mode, process.exit) for a
single lifecycle helper today. Remove dead code and mark as future work
in the ROADMAP rather than claiming it as done.
0 commit comments