summaryrefslogtreecommitdiffstats
path: root/ozone-cli
diff options
context:
space:
mode:
Diffstat (limited to 'ozone-cli')
-rw-r--r--ozone-cli/Cargo.toml6
-rw-r--r--ozone-cli/src/main.rs12
2 files changed, 16 insertions, 2 deletions
diff --git a/ozone-cli/Cargo.toml b/ozone-cli/Cargo.toml
index c4b3dd0..730a37f 100644
--- a/ozone-cli/Cargo.toml
+++ b/ozone-cli/Cargo.toml
@@ -4,4 +4,8 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-sysinfo = { version = "0.33.1", features = ["system", "multithread"] } \ No newline at end of file
+sysinfo = { version = "0.33.1", features = ["system", "multithread"] }
+o3launcher = { path = ".." }
+tokio = { version = "1.43.0", features = ["rt", "rt-multi-thread", "macros"] }
+tokio-macros = "2.5.0"
+simple_logger = { version = "5.0.0", features = ["colors"] }
diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs
index b3f91f1..dbe591a 100644
--- a/ozone-cli/src/main.rs
+++ b/ozone-cli/src/main.rs
@@ -1,8 +1,18 @@
use std::env::consts::{ARCH, OS};
+use std::error::Error;
+use std::path::PathBuf;
use sysinfo::System;
-fn main() {
+#[tokio::main]
+async fn main() -> Result<(), Box<dyn Error>> {
+ simple_logger::SimpleLogger::new().init().unwrap();
+
println!("Hello, world!");
println!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch());
println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>());
+
+ let launcher = o3launcher::launcher::Launcher::new(PathBuf::from("./work").as_path(), true).await?;
+ println!("ok");
+
+ Ok(())
}