MCPcopy Create free account
hub / github.com/clawshell/clawshell / parse_compact_confirm_input

Function parse_compact_confirm_input

src/tui.rs:222–228  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

220}
221
222fn parse_compact_confirm_input(input: &str) -> Option<bool> {
223 match input.trim().to_ascii_lowercase().as_str() {
224 "y" | "yes" => Some(true),
225 "n" | "no" => Some(false),
226 _ => None,
227 }
228}
229
230#[cfg_attr(test, allow(dead_code))]
231pub fn prompt_confirm_compact(message: &str, default: bool) -> Result<bool, Box<dyn Error>> {

Callers 1

prompt_confirm_compactFunction · 0.85

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected