From c1a7e38117308a867dbc91a63bbb58c09cc51434 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 13 Feb 2025 15:25:04 -0600 Subject: wip: account management cli --- ozone-cli/src/cli.rs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'ozone-cli/src/cli.rs') diff --git a/ozone-cli/src/cli.rs b/ozone-cli/src/cli.rs index 15a00da..6ba23d3 100644 --- a/ozone-cli/src/cli.rs +++ b/ozone-cli/src/cli.rs @@ -1,6 +1,7 @@ use std::path::PathBuf; use clap::{Args, Parser, Subcommand}; use clap::error::ErrorKind; +use uuid::Uuid; use ozone::launcher::{Instance, InstanceVersion, JavaRuntimeSetting, Resolution}; #[derive(Args, Debug)] @@ -160,9 +161,24 @@ impl InstanceArgs { } } +#[derive(Args, Debug)] +pub struct ProfileSelectArgs { + #[arg(index = 1, conflicts_with_all = ["uuid", "xuid", "gamertag"])] + pub name: Option, + + #[arg(long, conflicts_with_all = ["name", "xuid", "gamertag"])] + pub uuid: Option, + + #[arg(long, conflicts_with_all = ["name", "uuid", "gamertag"])] + pub xuid: Option, + + #[arg(long, short = 'g', alias = "gt", conflicts_with_all = ["name", "uuid", "xuid"])] + pub gamertag: Option +} + #[derive(Subcommand, Debug)] pub enum AccountCommand { - Select, + Select(ProfileSelectArgs), Forget, SignIn } -- cgit v1.2.3-70-g09d2