summaryrefslogtreecommitdiffstats
path: root/ozone-cli/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ozone-cli/src/main.rs')
-rw-r--r--ozone-cli/src/main.rs13
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?;
-
- */
}