summaryrefslogtreecommitdiffstats
path: root/ozone-cli
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-02-05 02:14:25 -0600
committerLibravatar bigfoot547 <[email protected]>2025-02-05 02:14:25 -0600
commitc57853db499ecc8b5c82e64cc8a54d63d76e5bb9 (patch)
tree079e0a2e945f2f7bb3ad64ae99b8232cb812d2bb /ozone-cli
parentget started on cli (diff)
no changes ignore
Diffstat (limited to 'ozone-cli')
-rw-r--r--ozone-cli/src/main.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs
index b449209..d0d7b21 100644
--- a/ozone-cli/src/main.rs
+++ b/ozone-cli/src/main.rs
@@ -1,18 +1,17 @@
mod cli;
use std::error::Error;
-use std::path::PathBuf;
-use std::process::{ExitCode, ExitStatus};
+use std::process::ExitCode;
use log::{error, info};
-use clap::{Args, Parser, Subcommand};
+use clap::Parser;
use ozone::launcher::{Launcher, Settings};
use crate::cli::{Cli, ProfileCommand, RootCommand};
async fn main_inner(cli: Cli) -> Result<ExitCode, Box<dyn Error>> {
- let Some(home) = cli.home.or_else(|| Launcher::sensible_home()) else {
+ let Some(home) = cli.home.or_else(Launcher::sensible_home) else {
error!("Could not choose a launcher home directory. Please choose one with `--home'.");
- Ok(ExitCode::FAILURE) // we print our own error message
+ return Ok(ExitCode::FAILURE); // we print our own error message
};
info!("Sensible home could be {home:?}");
@@ -22,9 +21,11 @@ async fn main_inner(cli: Cli) -> Result<ExitCode, Box<dyn Error>> {
match cli.subcmd {
RootCommand::Profile(mut p) => match p.take_command() {
ProfileCommand::List => {
-
+ todo!()
}
- }
+ _ => todo!()
+ },
+ _ => todo!()
}
Ok(ExitCode::SUCCESS)