pub type Confirm = Arc<dyn Fn(&str) -> bool + Send + Sync>;Expand description
Asks the user a yes/no question. Injected for the same reason: a unit test has no terminal, and which questions a flag answers on the user’s behalf - and, for a blueprint they edited, which ones no flag answers - is something the tests have to be able to prove rather than describe.
Aliased Type§
pub struct Confirm { /* private fields */ }