(&self, prompt: &str, choices: Vec<Type>)
| 39 | } |
| 40 | |
| 41 | pub fn select(&self, prompt: &str, choices: Vec<Type>) -> Result<String> { |
| 42 | let choice = Select::new(prompt, choices) |
| 43 | .with_render_config(self.config) |
| 44 | .prompt()?; |
| 45 | Ok(choice.name) |
| 46 | } |
| 47 | |
| 48 | pub fn confirm(&self, prompt: &str) -> Result<bool> { |
| 49 | let confirm = Confirm::new(prompt) |
no outgoing calls
no test coverage detected