Skip to main content

prompt_text

Function prompt_text 

Source
pub fn prompt_text(message: &str, default: Option<&str>) -> Result<String>
Expand description

Prompt the user for a free-text string input.

Returns the trimmed user input, or an error if the user cancelled.

ยงErrors

Returns CliCoreError if the prompt is cancelled or a terminal error occurs.