summaryrefslogtreecommitdiff
path: root/internal/batch
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-06 10:16:14 +0300
committerPaul Buetow <paul@buetow.org>2026-04-06 10:16:14 +0300
commit05bddac137607102f12c1c464db34a1e10707af6 (patch)
tree4b7b74102f78e146b17c1e73370bb0bf4c42a11a /internal/batch
parent51a8eaf8b759d6ef93c93b3e5430954959ea2aad (diff)
refactor: decompose Processor god object into focused files (SRP)
Extract audio coordination (voice selection, config assembly, attribution writing) into audio_coordinator.go, card directory management into card_store.go, and image downloading/searcher construction into image_downloader.go. processor.go shrinks from ~1119 to ~575 lines, each file now has a single clear responsibility. Also apply go fmt to all touched files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/batch')
-rw-r--r--internal/batch/processor.go1
-rw-r--r--internal/batch/processor_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/internal/batch/processor.go b/internal/batch/processor.go
index 2b002a9..c785a91 100644
--- a/internal/batch/processor.go
+++ b/internal/batch/processor.go
@@ -103,4 +103,3 @@ func parseBatchLine(line string) *WordEntry {
CardType: internal.CardTypeEnBg,
}
}
-
diff --git a/internal/batch/processor_test.go b/internal/batch/processor_test.go
index 4ec1739..85171d8 100644
--- a/internal/batch/processor_test.go
+++ b/internal/batch/processor_test.go
@@ -165,4 +165,3 @@ func TestReadBatchFile_FileNotFound(t *testing.T) {
t.Error("Expected error for non-existent file")
}
}
-