pub fn resolve_prompt(
file_flag: Option<&str>,
positional: &[String],
stdin_is_terminal: bool,
) -> Result<String>Expand description
Resolve the prompt text from the available sources.
Priority / conflict rules:
--fileand positional prompt args are mutually exclusive (Usage error).--file -reads all of stdin.--file <path>reads the file at that path.- If no
--filebut stdin is piped (not a TTY), read stdin as the prompt. - Otherwise, join the positional prompt words.