summaryrefslogtreecommitdiff
path: root/internal/cli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-04 11:25:11 +0300
committerPaul Buetow <paul@buetow.org>2026-04-04 11:25:11 +0300
commit03f2ca528a34a7e099f1db8d5a931136af2a4652 (patch)
tree9a6f79220e85e3bacbb0e693ad7504529269ceae /internal/cli
parent793d7b3c61a403a8c03f1eb44df741c6951444e8 (diff)
feat: random ultra-realistic/comic style, --no-ultra-realistic flag, updated READMEv0.13.0
- Random 50/50 rendering mode per run (ultra-realistic or standard comic style) - --no-ultra-realistic flag forces standard comic style when set - renderingRequirement const centralised and applied to all image prompts via DRY renderReq() method - Log rendering mode chosen at generation time - Update README: correct page count (10), output filenames, all --story flags documented - Bump version to 0.13.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli')
-rw-r--r--internal/cli/command.go1
-rw-r--r--internal/cli/flags.go9
2 files changed, 6 insertions, 4 deletions
diff --git a/internal/cli/command.go b/internal/cli/command.go
index 6f0b2a2..a1168b5 100644
--- a/internal/cli/command.go
+++ b/internal/cli/command.go
@@ -68,6 +68,7 @@ func setupFlags(cmd *cobra.Command, flags *Flags) {
cmd.Flags().StringVar(&flags.StoryFile, "story", "", "Generate a vocabulary story + comic image from a batch-format file (outputs to current directory)")
cmd.Flags().StringVar(&flags.StoryStyle, "story-style", "", "Art style for comic pages (default: random). E.g. \"ultra realistic comic strip with photographic detail and dramatic lighting\"")
cmd.Flags().StringVar(&flags.StoryTheme, "story-theme", "", "Genre/theme for the story (default: random). E.g. \"a thrilling space adventure with aliens and spaceships\"")
+ cmd.Flags().BoolVar(&flags.StoryNoUltraRealistic, "no-ultra-realistic", false, "Disable photorealistic rendering requirement; produces standard comic-book style output")
cmd.Flags().StringVar(&flags.NarratorVoice, "narrator-voice", "",
"Gemini voice for cinematic story narration (default: random from cinematic pool). "+
"Valid values: Charon, Fenrir, Enceladus, Algieba, Aoede, Schedar")
diff --git a/internal/cli/flags.go b/internal/cli/flags.go
index b9d28c9..104f721 100644
--- a/internal/cli/flags.go
+++ b/internal/cli/flags.go
@@ -20,10 +20,11 @@ type Flags struct {
ImageAPI string
ImageAPISpecified bool
BatchFile string
- StoryFile string // --story <file>: generate vocabulary story + comic image
- StoryStyle string // --story-style: override the random art style (empty = random)
- StoryTheme string // --story-theme: override the random genre pick (empty = random)
- NarratorVoice string // --narrator-voice: Gemini voice for cinematic narration (empty = random)
+ StoryFile string // --story <file>: generate vocabulary story + comic image
+ StoryStyle string // --story-style: override the random art style (empty = random)
+ StoryTheme string // --story-theme: override the random genre pick (empty = random)
+ StoryNoUltraRealistic bool // --no-ultra-realistic: disable photorealistic rendering requirement
+ NarratorVoice string // --narrator-voice: Gemini voice for cinematic narration (empty = random)
SkipAudio bool
SkipImages bool
GenerateAnki bool