diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-06 11:25:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-06 11:25:37 +0300 |
| commit | ef1f3d03ac3f117fecd999fc4fa96f557bfa8fe4 (patch) | |
| tree | f1d3507db5699d86045090e64db99781611c99b7 /internal/cli/flags.go | |
| parent | 8f906ac9efc703db4f15c39115394ca8cf01c119 (diff) | |
feat: add --video CLI flag to control Veo video prompt after story generation
Add VideoEnabled bool (default true) to Flags, register --video bool flag in
command.go, export PromptForGalleryVideos/GenerateSelectedVideos, and wire them
into main.go via runStoryVideos — skipped when --video=false. Also update
findGalleryPages to walk subdirectories recursively so gallery PNGs inside
comics/<slug>/ are discovered from the CWD search root.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/flags.go')
| -rw-r--r-- | internal/cli/flags.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/cli/flags.go b/internal/cli/flags.go index df493a4..678b8ab 100644 --- a/internal/cli/flags.go +++ b/internal/cli/flags.go @@ -26,6 +26,7 @@ type Flags struct { StoryNoUltraRealistic bool // --no-ultra-realistic: disable photorealistic rendering requirement StorySlug string // --story-slug: force a specific output slug/directory (empty = auto from title) NarratorVoice string // --narrator-voice: Gemini voice for cinematic narration (empty = random) + VideoEnabled bool // --video: whether to prompt for Veo video generation after --story completes SkipAudio bool SkipImages bool GenerateAnki bool @@ -72,6 +73,7 @@ func NewFlags() *Flags { AudioFormat: defaults.OutputFormat, AudioProvider: defaults.Provider, ImageAPI: "nanobanana", + VideoEnabled: true, DeckName: "Bulgarian Vocabulary", OpenAIModel: "gpt-4o-mini-tts", OpenAISpeed: 0.9, |
