feat: add sync files\folders

This commit is contained in:
2026-08-23 05:26:36 +05:00
parent 363a4a7e5b
commit 27cf814c39
6 changed files with 327 additions and 10 deletions
+8 -2
View File
@@ -121,7 +121,7 @@ fn query_ssh_config(alias: &str) -> HostConfig {
}
}
struct ClientHandler {
pub(crate) struct ClientHandler {
host: String,
port: u16,
}
@@ -173,7 +173,13 @@ pub struct Session {
handle: Handle<ClientHandler>,
}
fn runtime() -> &'static tokio::runtime::Runtime {
impl Session {
pub(crate) fn handle(&mut self) -> &mut Handle<ClientHandler> {
&mut self.handle
}
}
pub(crate) fn runtime() -> &'static tokio::runtime::Runtime {
static RT: OnceLock<tokio::runtime::Runtime> = OnceLock::new();
RT.get_or_init(|| {
tokio::runtime::Builder::new_current_thread()