summaryrefslogtreecommitdiffstats
path: root/ozone-cli
diff options
context:
space:
mode:
Diffstat (limited to 'ozone-cli')
-rw-r--r--ozone-cli/Cargo.toml1
-rw-r--r--ozone-cli/src/main.rs9
2 files changed, 2 insertions, 8 deletions
diff --git a/ozone-cli/Cargo.toml b/ozone-cli/Cargo.toml
index 61b7808..e793eaa 100644
--- a/ozone-cli/Cargo.toml
+++ b/ozone-cli/Cargo.toml
@@ -9,3 +9,4 @@ ozone = { path = "../ozone" }
tokio = { version = "1.43.0", features = ["rt", "rt-multi-thread", "macros"] }
simple_logger = { version = "5.0.0", features = ["colors"] }
log = "0.4.25"
+clap = "4.5.27"
diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs
index f94fbe6..a17979e 100644
--- a/ozone-cli/src/main.rs
+++ b/ozone-cli/src/main.rs
@@ -1,19 +1,12 @@
-use std::env::consts::{ARCH, OS};
use std::error::Error;
use log::{error, info};
-use sysinfo::System;
use ozone::launcher::{Launcher, Settings};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
simple_logger::SimpleLogger::new().env().init().unwrap();
-
- info!("Hello, world!");
- info!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch());
- info!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>());
-
-
+ info!("Sensible home could be {:?}", Launcher::sensible_home());
let settings = Settings::load("./work/ozone.json").await?;
settings.save().await?;