feat(sync_run): wire --select into download pipeline

Replace select_mode stub with real selection pipeline:
- TTY guard: non-interactive terminals get fatal_error exit
- Convert filtered dicts to Books via from_library_row()
- Call select_books(), pass selected Books to orchestrator
- Orchestrator accepts pre-converted Book objects (isinstance check)
- --limit bypassed when --select is active, with verbose note
- Remove "[not implemented]" from --select help text

Closes #48
This commit is contained in:
AlexKucera committed 2026-06-06 12:13:56 +02:00
1 parent 0d555e4628
commit fa1543e3d7
9 files changed
+306 -22

No files matched your search

+5 -4
View File
@@ -8,12 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- **selector:** Add interactive book selection module with
`select_books(books) -> list[Book]`. Questionary checkbox prompt
(all unchecked by default), confirmation summary with y/N prompt,
original-input-order preservation, Ctrl+C propagation via
`unsafe_ask()`. Row format: `N. Title — Author [Series #N]`.
9 tests. Closes #47.
- **sync_run:** Wire `--select` into download pipeline. TTY guard
(non-interactive terminals get error exit 1), dict→Book conversion
via `from_library_row()`, selected Books pass to orchestrator
without double-conversion, `--limit` bypassed with verbose note.
6 integration tests. Closes #48.
### Fixed