From b3c1ac78eaa89b7cd3a0e85a5ca2e7553d1aece6 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Sun, 24 Nov 2024 22:06:45 -0800 Subject: [PATCH] chore: rename primary command signin -> login --- .../cli/src/commands/{sign_in.rs => login.rs} | 2 +- .../cli/src/commands/{sign_out.rs => logout.rs} | 0 packages/cli/src/commands/mod.rs | 16 ++++++++-------- 3 files changed, 9 insertions(+), 9 deletions(-) rename packages/cli/src/commands/{sign_in.rs => login.rs} (95%) rename packages/cli/src/commands/{sign_out.rs => logout.rs} (100%) diff --git a/packages/cli/src/commands/sign_in.rs b/packages/cli/src/commands/login.rs similarity index 95% rename from packages/cli/src/commands/sign_in.rs rename to packages/cli/src/commands/login.rs index 860c1806..a94b22eb 100644 --- a/packages/cli/src/commands/sign_in.rs +++ b/packages/cli/src/commands/login.rs @@ -22,7 +22,7 @@ impl Opts { { Ok(output) => { if output.signed_in { - eprintln!("Already logged in. Sign out with `rivet logout`."); + eprintln!("Already logged in. Log out with `rivet logout`."); return ExitCode::SUCCESS; } } diff --git a/packages/cli/src/commands/sign_out.rs b/packages/cli/src/commands/logout.rs similarity index 100% rename from packages/cli/src/commands/sign_out.rs rename to packages/cli/src/commands/logout.rs diff --git a/packages/cli/src/commands/mod.rs b/packages/cli/src/commands/mod.rs index cc2c1912..d9845242 100644 --- a/packages/cli/src/commands/mod.rs +++ b/packages/cli/src/commands/mod.rs @@ -3,10 +3,10 @@ pub mod build; pub mod deploy; pub mod environment; pub mod init; +pub mod login; +pub mod logout; pub mod metadata; pub mod region; -pub mod sign_in; -pub mod sign_out; use clap::Parser; use std::process::ExitCode; @@ -14,10 +14,10 @@ use std::process::ExitCode; #[derive(Parser)] pub enum SubCommand { Init(init::Opts), - #[clap(alias = "login")] - Signin(sign_in::Opts), - #[clap(alias = "logout")] - Signout(sign_out::Opts), + #[clap(alias = "signin")] + Login(login::Opts), + #[clap(alias = "signout")] + Logout(logout::Opts), #[clap(alias = "d")] Deploy(deploy::Opts), #[clap(alias = "e", alias = "env")] @@ -50,8 +50,8 @@ impl SubCommand { pub async fn execute(&self) -> ExitCode { match self { SubCommand::Init(opts) => opts.execute().await, - SubCommand::Signin(opts) => opts.execute().await, - SubCommand::Signout(opts) => opts.execute().await, + SubCommand::Login(opts) => opts.execute().await, + SubCommand::Logout(opts) => opts.execute().await, SubCommand::Deploy(opts) => opts.execute().await, SubCommand::Environment { subcommand } => subcommand.execute().await, SubCommand::Actor { subcommand } => subcommand.execute().await,