diff options
Diffstat (limited to 'ozone-cli')
| -rw-r--r-- | ozone-cli/src/main.rs | 15 |
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) |
