Skip to main content

Module prompt_source

Module prompt_source 

Source
Expand description

Resolve the three mutually-exclusive gw new prompt sources (--prompt, --prompt-file, --prompt-stdin) into a single optional string.

Mutual exclusion is enforced at parse time by clap (ArgGroup in cli.rs), so this helper assumes at most one source is active.

Functionsยง

resolve_prompt
Collapse the three prompt sources into a single optional string.