refactor(cli): extract sync_run pipeline and slim CLI to adapter (#31)
Move entire download pipeline from cli.run() into standalone sync_run() in new sync_run.py module. Introduce SyncRunResult frozen dataclass as public return type with fatal_error field for exit-code translation. Slim cli.py from 252→65 lines to a thin argparse→exit adapter that only calls sync_run(). Migrate 35 pipeline tests from test_cli.py to test_sync_run.py (43 total). CLI tests now only patch sync_run (no internal collaborators). Add select_mode stub for ADR #6 branch point. Update test_progress.py patch targets to sync_run module. 374 tests pass.
This commit is contained in:
1 parent
1f46467f2c
commit
f371152166
8 files changed
+2145
-1651
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user