summaryrefslogtreecommitdiff
path: root/internal/processor/doc.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-20 22:18:57 +0300
committerPaul Buetow <paul@buetow.org>2025-07-20 22:18:57 +0300
commite580fb57a29ec3c3f3e180b20cfa6ec28687689b (patch)
treede74f04450b830268e4c1644a91acb9fd45c3802 /internal/processor/doc.go
parent9e3328a6aaefe4bd1aa0ec3e8bf6e93d6033180b (diff)
Refactor main.go into focused packages
- Reduced main.go from 961 lines to 89 lines (91% reduction) - Created new packages for better separation of concerns: - cli: Command-line interface setup and configuration - processor: Core word processing logic and orchestration - batch: Batch file processing functionality - translation: Bulgarian to English translation services - models: OpenAI model listing functionality - phonetic: Phonetic information fetching - Each package has clear documentation in doc.go files - Improved testability and maintainability - All existing functionality preserved - All tests passing and build successful
Diffstat (limited to 'internal/processor/doc.go')
-rw-r--r--internal/processor/doc.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/processor/doc.go b/internal/processor/doc.go
new file mode 100644
index 0000000..6738816
--- /dev/null
+++ b/internal/processor/doc.go
@@ -0,0 +1,5 @@
+// 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.
+package processor