mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
21 lines
342 B
Rust
21 lines
342 B
Rust
use yazi_macro::{emit, relay};
|
|
use yazi_shared::url::UrlBuf;
|
|
|
|
pub struct MgrProxy;
|
|
|
|
impl MgrProxy {
|
|
pub fn refresh() {
|
|
emit!(Call(relay!(mgr:refresh)));
|
|
}
|
|
|
|
pub fn upload<I>(urls: I)
|
|
where
|
|
I: IntoIterator<Item = UrlBuf>,
|
|
{
|
|
emit!(Call(relay!(mgr:upload).with_seq(urls)));
|
|
}
|
|
|
|
pub fn watch() {
|
|
emit!(Call(relay!(mgr:watch)));
|
|
}
|
|
}
|