summaryrefslogtreecommitdiffstats
path: root/ozone-cli/src/cli.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-02-13 21:40:26 -0600
committerLibravatar bigfoot547 <[email protected]>2025-02-13 21:40:26 -0600
commit749bacadc4425797c695f815dd5dfe63ba30cde7 (patch)
treed853cb9949cdea56be2b9bdb9b91e6ac67d6f263 /ozone-cli/src/cli.rs
parentminor changes (diff)
cli account management
Diffstat (limited to 'ozone-cli/src/cli.rs')
-rw-r--r--ozone-cli/src/cli.rs24
1 files changed, 23 insertions, 1 deletions
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<String>
}
+#[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)]