macro_rules! confirm {
    ($text:expr) => { ... };
}
Expand description

Confirm.

This is a convenience macro for generating a confirmation message, handling the prompting, and returning the response bool.

Example

use fyi_msg::{confirm, Msg, MsgKind};

// The manual way:
if Msg::new(MsgKind::Confirm, "Do you like chickens?").prompt() {
    println!("That's great! They like you too!");
}

// The macro way:
if confirm!("Do you like chickens?") {
    println!("That's great! They like you too!");
}