diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-01 19:40:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-01 19:40:17 +0300 |
| commit | e264a38e0a92ba451c21e64af2abf2d7fb88f919 (patch) | |
| tree | 4714fc9c824637b365379103fe491455bf921748 /internal/cli | |
| parent | 008d6308ecb767df7194aa944328c6ead6473ca5 (diff) | |
z9: fix GUI launch provider propagation
Diffstat (limited to 'internal/cli')
| -rw-r--r-- | internal/cli/flags.go | 29 | ||||
| -rw-r--r-- | internal/cli/flags_test.go | 3 |
2 files changed, 17 insertions, 15 deletions
diff --git a/internal/cli/flags.go b/internal/cli/flags.go index 9c00051..1e18766 100644 --- a/internal/cli/flags.go +++ b/internal/cli/flags.go @@ -8,20 +8,21 @@ const ( // Flags holds all command-line flag values type Flags struct { // General flags - CfgFile string - OutputDir string - AudioFormat string - ImageAPI string - BatchFile string - SkipAudio bool - SkipImages bool - GenerateAnki bool - AnkiCSV bool - DeckName string - ListModels bool - AllVoices bool - NoAutoPlay bool - Archive bool + CfgFile string + OutputDir string + AudioFormat string + ImageAPI string + ImageAPISpecified bool + BatchFile string + SkipAudio bool + SkipImages bool + GenerateAnki bool + AnkiCSV bool + DeckName string + ListModels bool + AllVoices bool + NoAutoPlay bool + Archive bool // OpenAI flags OpenAIModel string diff --git a/internal/cli/flags_test.go b/internal/cli/flags_test.go index d40d8a2..2a63d8d 100644 --- a/internal/cli/flags_test.go +++ b/internal/cli/flags_test.go @@ -16,6 +16,7 @@ func TestNewFlags(t *testing.T) { }{ {"AudioFormat", flags.AudioFormat, "mp3"}, {"ImageAPI", flags.ImageAPI, "openai"}, + {"ImageAPISpecified", flags.ImageAPISpecified, false}, {"DeckName", flags.DeckName, "Bulgarian Vocabulary"}, {"OpenAIModel", flags.OpenAIModel, "gpt-4o-mini-tts"}, {"OpenAISpeed", flags.OpenAISpeed, 0.9}, @@ -84,7 +85,7 @@ func TestFlagsStructure(t *testing.T) { flagsType := reflect.TypeOf(*flags) expectedFields := []string{ - "CfgFile", "OutputDir", "AudioFormat", "ImageAPI", "BatchFile", + "CfgFile", "OutputDir", "AudioFormat", "ImageAPI", "ImageAPISpecified", "BatchFile", "SkipAudio", "SkipImages", "GenerateAnki", "AnkiCSV", "DeckName", "ListModels", "AllVoices", "NoAutoPlay", "OpenAIModel", "OpenAIVoice", "OpenAISpeed", "OpenAIInstruction", |
