mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 07:41:03 +00:00
14 lines
299 B
Rust
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)));
|
|
}
|
|
}
|