From 749bacadc4425797c695f815dd5dfe63ba30cde7 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 13 Feb 2025 21:40:26 -0600 Subject: cli account management --- ozone-cli/src/cli.rs | 24 +++++++++++++++++++++++- 1 file changed, 23 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 6ba23d3..8ed2f33 100644 --- a/ozone-cli/src/cli.rs +++ b/ozone-cli/src/cli.rs @@ -176,11 +176,33 @@ pub struct ProfileSelectArgs { pub gamertag: Option } +#[derive(Args, Debug)] +pub struct ProfileSignInArgs { + /// Elect to use an alternate client id to authenticate to Minecraft. + /// + /// Avoid using this if possible, + /// since you will not be able to easily revoke oauth access to the launcher. + /// + /// Situations when you might need to use this are if your Microsoft account's birthday + /// is set to a date fewer than 18 years in the past while not in a family. + #[arg(long)] + pub use_alt_client_id: bool, + + #[arg(long)] + pub no_select: bool +} + #[derive(Subcommand, Debug)] pub enum AccountCommand { Select(ProfileSelectArgs), Forget, - SignIn + + #[command(name = "signin")] + SignIn(ProfileSignInArgs), + + List, + Info, + Refresh } #[derive(Args, Debug)] -- cgit v1.2.3-70-g09d2