diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-03 08:03:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-03 08:03:05 +0300 |
| commit | 63bd86d8046949e80e5b1122a1fcf717f51915c6 (patch) | |
| tree | 10bc72c97d1ba597bc82fb273987716eabf2e989 /internal/cli/command.go | |
| parent | 5a1a6b863c3adaa8ec9d087ba130f7676fc9575b (diff) | |
tasks 00d, 006, 007: move test seams to struct fields, centralize Viper config, extract shared card-dir logic
task 00d: remove package-level var test seams from processor and gui packages;
factory functions (newAudioProvider, newOpenAIImageClient, newNanoBananaImageClient)
are now struct fields on Processor and Application, initialized with production
defaults in constructors and replaced in tests without global mutation.
task 006: add viperConfig struct captured once in NewProcessor; no method body
calls viper.GetString/IsSet/GetFloat64 directly any more — all config-file values
are accessed via p.viperCfg fields.
task 007: extract FindCardDirectory and FindOrCreateCardDirectory into
internal/utils.go; both Processor.findCardDirectory and
Application.findCardDirectory now delegate to the shared implementation,
which also handles the legacy _word.txt backward-compat fallback.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/command.go')
0 files changed, 0 insertions, 0 deletions
