diff options
| author | 2025-02-12 14:21:33 -0600 | |
|---|---|---|
| committer | 2025-02-12 14:21:33 -0600 | |
| commit | beea99db3faea47dbd7c527da1d2f3151da3debe (patch) | |
| tree | b65fd4db721f2917901c473f428d3bc857969416 /ozone-cli/src/main.rs | |
| parent | unstupid some stuff (diff) | |
minecraft
Diffstat (limited to 'ozone-cli/src/main.rs')
| -rw-r--r-- | ozone-cli/src/main.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs index 5174348..c53eade 100644 --- a/ozone-cli/src/main.rs +++ b/ozone-cli/src/main.rs @@ -7,8 +7,17 @@ use clap::Parser; use ozone::launcher::{Instance, JavaRuntimeSetting, Launcher, Settings}; use ozone::launcher::version::{VersionList, VersionResult}; use uuid::Uuid; +use ozone::auth::{Account, AuthenticationDatabase}; use crate::cli::{Cli, InstanceCommand, RootCommand}; +fn find_account(auth: &AuthenticationDatabase, input: &str) -> Option<Account> { + for user in auth.users.iter() { + + } + + todo!() +} + async fn main_inner(cli: Cli) -> Result<ExitCode, Box<dyn Error>> { let Some(home) = cli.home.or_else(Launcher::sensible_home) else { error!("Could not choose a launcher home directory. Please choose one with `--home'."); @@ -218,8 +227,4 @@ async fn main() -> ExitCode { ExitCode::FAILURE }) - - /*let launcher = Launcher::new("./work", true).await?; - - */ } |
