Commit 1790b9b
refactor: reduce complexity of main in src/main.rs (#382)
Extract the Execute command arm (~120 lines of nested logic) into
dedicated helper functions:
- run_compile: handles Compile arm flags/dispatch
- run_execute: orchestrates the Execute pipeline (parse → context → run → memory → summary)
- build_execution_context: reads front matter into ExecutionContext, including OTel stats
- process_cache_memory: checks cache-memory tool config and processes memory artifacts
- print_execution_summary: formats and prints the final results table
Also flatten the top-level if-let/match in main to let-else + match,
reducing nesting depth.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c533900 commit 1790b9b
1 file changed
Lines changed: 245 additions & 201 deletions
0 commit comments