summaryrefslogtreecommitdiff
path: root/cmd
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 /cmd
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 'cmd')
-rw-r--r--cmd/totalrecall/main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/totalrecall/main.go b/cmd/totalrecall/main.go
index d6abcf5..f3a84f9 100644
--- a/cmd/totalrecall/main.go
+++ b/cmd/totalrecall/main.go
@@ -69,6 +69,7 @@ func runCommand(cmd *cobra.Command, args []string, flags *cli.Flags) error {
OutputDir: ".",
Style: flags.StoryStyle,
Theme: flags.StoryTheme,
+ UltraRealistic: storyUltraRealistic(flags.StoryNoUltraRealistic),
NarratorVoice: flags.NarratorVoice,
})
return runner.Run(flags.StoryFile)
@@ -139,3 +140,15 @@ func runGUIMode(proc *processor.Processor, flags *cli.Flags) error {
return nil
}
+
+// storyUltraRealistic converts the --no-ultra-realistic bool flag into a *bool
+// for RunnerConfig. When noUltraRealistic is true, returns a pointer to false
+// (forcing standard comic style). When false (flag not set), returns nil so
+// the runner picks randomly 50/50 each run.
+func storyUltraRealistic(noUltraRealistic bool) *bool {
+ if noUltraRealistic {
+ v := false
+ return &v
+ }
+ return nil // nil → random pick in NewRunner
+}