From f3e301168ad742a556b336761e28f739eb1d7143 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 21 Jul 2025 15:06:01 +0300 Subject: feat: improve consistency between CLI and GUI modes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- internal/cli/command_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/cli/command_test.go') 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) } -- cgit v1.2.3