yazi/yazi-proxy/src/app.rs
2026-04-04 21:28:57 +08:00

14 lines
299 B
Rust

use yazi_core::app::{PluginOpt, QuitOpt};
use yazi_macro::{emit, relay};
pub struct AppProxy;
impl AppProxy {
pub fn quit(opt: QuitOpt) {
emit!(Call(relay!(app:quit).with_any("opt", opt)));
}
pub fn plugin_do(opt: PluginOpt) {
emit!(Call(relay!(app:plugin_do).with_any("opt", opt)));
}
}