From 08d7d36ac6d49d7d5efd39a837bc08c9c52b6eb8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 8 Apr 2026 10:01:57 +0300 Subject: refactor(processor): split BatchProcessor, AnkiExporter, CLIConfigResolver Extract CLIConfigResolver for flag/config precedence and GUI wiring; embed it on Processor so audio and image helpers use promoted accessors. Move batch file flow to BatchProcessor and Anki generation to AnkiExporter; Processor delegates while keeping per-word processing and translation cache. Made-with: Cursor --- internal/processor/doc.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/processor/doc.go') diff --git a/internal/processor/doc.go b/internal/processor/doc.go index 6738816..29f85ba 100644 --- a/internal/processor/doc.go +++ b/internal/processor/doc.go @@ -1,5 +1,6 @@ // Package processor contains the core business logic for processing Bulgarian -// words. It orchestrates audio generation, image downloading, translation, -// phonetic information fetching, and Anki file generation. This package -// serves as the main coordinator between all other components. +// words. Processor composes BatchProcessor (batch file orchestration), +// AnkiExporter (deck export), and CLIConfigResolver (CLI vs config-file +// precedence for run-mode settings). It also coordinates audio generation, +// image downloading, translation, and phonetic fetching. package processor -- cgit v1.2.3