diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-19 23:53:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-19 23:53:49 +0300 |
| commit | c8a22dc45bb880a0fbf0ac4f0ecd9fe13f8a215d (patch) | |
| tree | 5e2296145588483e8d57ebd3a911793d209e6081 /cmd | |
| parent | 6038d6e29d4878cccb46bf35bb9885ec7d376422 (diff) | |
more on this
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/totalrecall/main.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd/totalrecall/main.go b/cmd/totalrecall/main.go index ab06987..1a65bf4 100644 --- a/cmd/totalrecall/main.go +++ b/cmd/totalrecall/main.go @@ -59,9 +59,11 @@ var rootCmd = &cobra.Command{ It creates audio pronunciation files using OpenAI TTS and downloads representative images from web search APIs. -Example: - totalrecall ябълка # Generate materials for "apple" - totalrecall --batch words.txt # Process multiple words from file`, +Examples: + totalrecall # Launch interactive GUI (default) + totalrecall ябълка # Generate materials for "apple" via CLI + totalrecall --batch words.txt # Process multiple words from file + totalrecall --gui # Explicitly launch GUI mode`, Args: cobra.MaximumNArgs(1), RunE: runCommand, Version: internal.Version, @@ -215,8 +217,8 @@ func runCommand(cmd *cobra.Command, args []string) error { // Single word from command line entries = []wordEntry{{bulgarian: args[0], translation: ""}} } else { - // No input provided - return fmt.Errorf("please provide a Bulgarian word or use --batch flag") + // No input provided - launch GUI mode by default + return runGUIMode() } // Validate words |
