Skip to content

feat: support --prompt-file across prompt-taking commands#14

Open
christophetd wants to merge 3 commits intoquinnypig:mainfrom
christophetd:feature/prompt-from-file-or-stdin
Open

feat: support --prompt-file across prompt-taking commands#14
christophetd wants to merge 3 commits intoquinnypig:mainfrom
christophetd:feature/prompt-from-file-or-stdin

Conversation

@christophetd
Copy link
Copy Markdown

@christophetd christophetd commented Apr 29, 2026

I needed to use this with a multiline, multi-paragraph prompt and it wasn't working, so I added a CLI flag to read the prompt from a file (or stdin).

The flag is now supported across all commands that take a prompt: generate, diagram, icon, pattern, story, and edit (for edit, the second positional [instruction] becomes optional). Pass - to read from stdin.

Example:

echo "isometric illustration of a coffee shop, watercolor style" | imagemage generate --prompt-file -
imagemage diagram --prompt-file ./diagram.txt
imagemage edit photo.png --prompt-file ./instruction.txt

@christophetd christophetd marked this pull request as draft April 29, 2026 14:46
@christophetd christophetd changed the title feat(generate): support --prompt-file (use - for stdin) feat: support --prompt-file across prompt-taking commands Apr 29, 2026
@christophetd christophetd marked this pull request as ready for review April 29, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant