prompt_text

Function prompt_text 

Source
pub fn prompt_text(message: &str) -> String
Expand description

Prompts for free-form text and returns the trimmed input.

Behavior:

  • On I/O failure, logs an error via output::print and retries.
  • If a validator is provided (see prompt_text_with_validation), it will retry on validation errors.