pub trait Prompter {
// Required methods
fn ask_string(
&mut self,
prompt: &str,
default: Option<&str>,
optional: bool,
) -> Result<String>;
fn ask_bool(&mut self, prompt: &str, default: bool) -> Result<bool>;
fn ask_int(&mut self, prompt: &str, default: Option<i64>) -> Result<i64>;
}Expand description
Abstraction over interactive prompts so tests can inject scripted answers.