#[macro_export]
macro_rules! intro {
() => {
println!("{}", *$crate::style::chars::BAR_START);
};
($($arg:tt)*) => {{
print!("{} ", *$crate::style::chars::BAR_START);
println!($($arg)*);
}}
}
#[macro_export]
macro_rules! outro {
() => {{
println!("{}", *$crate::style::chars::BAR);
println!("{}", *$crate::style::chars::BAR_END);
println!();
}};
($($arg:tt)*) => {{
println!("{}", *$crate::style::chars::BAR);
print!("{} ", *$crate::style::chars::BAR_END);
println!($($arg)*);
println!();
}};
}
#[macro_export]
macro_rules! cancel {
($arg:expr) => {{
$crate::outro!("{}", $crate::owo_colors::OwoColorize::red(&$arg));
}};
}
#[macro_export]
macro_rules! info {
() => {{
println!("{}", *$crate::style::chars::BAR);
println!("{}", $crate::owo_colors::OwoColorize::cyan(&*$crate::style::chars::STEP_SUBMIT));
}};
($($arg:tt)*) => {{
println!("{}", *$crate::style::chars::BAR);
print!("{} ", $crate::owo_colors::OwoColorize::cyan(&*$crate::style::chars::STEP_SUBMIT));
println!($($arg)*);
}}
}
#[macro_export]
macro_rules! warn {
() => {{
println!("{}", *$crate::style::chars::BAR);
println!("{}", $crate::owo_colors::OwoColorize::yellow(&*$crate::style::chars::STEP_ERROR));
}};
($($arg:tt)*) => {{
println!("{}", *$crate::style::chars::BAR);
print!("{} ", $crate::owo_colors::OwoColorize::yellow(&*$crate::style::chars::STEP_ERROR));
println!($($arg)*);
}};
}
#[macro_export]
macro_rules! err {
() => {{
println!("{}", *$crate::style::chars::BAR);
println!("{}", $crate::owo_colors::OwoColorize::red(&*$crate::style::chars::STEP_CANCEL));
}};
($($arg:tt)*) => {{
println!("{}", *$crate::style::chars::BAR);
print!("{} ", $crate::owo_colors::OwoColorize::red(&*$crate::style::chars::STEP_CANCEL));
println!($($arg)*);
}};
}