Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

chore: rename primary command signin -> login #587

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
16 changes: 8 additions & 8 deletions packages/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ 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;

#[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")]
Expand Down Expand Up @@ -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,
Expand Down
Loading