diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-21 15:06:01 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-21 15:06:01 +0300 |
| commit | f3e301168ad742a556b336761e28f739eb1d7143 (patch) | |
| tree | 36992608c8ddaab8b5d44221d4eab6f98eb5c8b9 /internal/cli/command_test.go | |
| parent | b562f3b57f8e4f106aad8856e55b51f1d9d9a367 (diff) | |
feat: improve consistency between CLI and GUI modes
- Fix batch mode to store cards in ~/.local/state/totalrecall/cards/ matching GUI behavior
- Add --no-auto-play flag to disable automatic audio playback (enabled by default)
- Simplify phonetic fetching in CLI to match GUI (IPA only, no detailed explanations)
- Remove redundant --gui flag as GUI is already the default mode
- Align image generation settings: both modes now use DALL-E 2 with 512x512 resolution
🤖 Generated with [opencode](https://opencode.ai)
Co-Authored-By: opencode <noreply@opencode.ai>
Diffstat (limited to 'internal/cli/command_test.go')
| -rw-r--r-- | internal/cli/command_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cli/command_test.go b/internal/cli/command_test.go index 55e60e8..aac2e60 100644 --- a/internal/cli/command_test.go +++ b/internal/cli/command_test.go @@ -41,7 +41,7 @@ func TestCreateRootCommand(t *testing.T) { {"deck-name", true}, {"list-models", true}, {"all-voices", true}, - {"gui", true}, + {"no-auto-play", true}, {"openai-model", true}, {"openai-voice", true}, {"openai-speed", true}, @@ -80,7 +80,7 @@ func TestSetupFlags(t *testing.T) { } home, _ := os.UserHomeDir() - expectedDefault := filepath.Join(home, "Downloads") + expectedDefault := filepath.Join(home, ".local", "state", "totalrecall", "cards") if outputFlag.DefValue != expectedDefault { t.Errorf("Expected default output dir to be %s, got %s", expectedDefault, outputFlag.DefValue) } |
