mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
10 lines
288 B
Rust
10 lines
288 B
Rust
#[macro_export]
|
|
macro_rules! confirm {
|
|
($cx:ident, $cfg:expr) => {{
|
|
let token = yazi_shared::CompletionToken::default();
|
|
match $crate::act!(confirm:show, $cx, yazi_parser::confirm::ShowForm { cfg: $cfg, token: token.clone() }) {
|
|
Ok(_) => Ok(token),
|
|
Err(e) => Err(e)
|
|
}
|
|
}};
|
|
}
|