macro_rules! prompt_yes {
($($arg:tt)*) => { ... };
}Expand description
Macro to prompt the user with a message and collect input.
Returns true if the input is “yes” or “y” (case-insensitive), otherwise false.
Example usage:
if prompt_yes!("Do you want to continue? (yes/y):") {
println!("Continuing...");
} else {
println!("Exiting...");
}