fix: Rewrite main for CI

This commit is contained in:
Black_Raven committed 2026-02-27 17:24:41 +03:00
1 parent 5c26c57efe
commit 700f4a1716
1 file changed
+10 -4
+10 -4
View File
@@ -1,11 +1,17 @@
mod rcloneInstall; mod rcloneInstall;
//use rcloneInstall::RcloneApp;
use tokio::runtime::Runtime; use tokio::runtime::Runtime;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let rt = Runtime::new()?; let rt = Runtime::new()?;
rt.block_on(rcloneInstall::install_latest_rclone())?;
Ok(()) let rclone = rt.block_on(async {
let rclone = rcloneInstall::RcloneApp::new().await?;
println!("rclone готов к использованию");
Ok::<_, Box<dyn std::error::Error>>(rclone)
})?;
let v = rclone.version();
println!("Rclone: {:?}", v);
Ok::<_, Box<dyn std::error::Error>>(())
} }