From c57853db499ecc8b5c82e64cc8a54d63d76e5bb9 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 5 Feb 2025 02:14:25 -0600 Subject: no changes ignore --- ozone-cli/src/main.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ozone-cli/src/main.rs') 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> { - 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> { match cli.subcmd { RootCommand::Profile(mut p) => match p.take_command() { ProfileCommand::List => { - + todo!() } - } + _ => todo!() + }, + _ => todo!() } Ok(ExitCode::SUCCESS) -- cgit v1.2.3-70-g09d2