Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI - spacetime upgrade takes --yes instead of deprecated --force #1805

Merged
merged 1 commit into from
Oct 5, 2024
Merged
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
10 changes: 2 additions & 8 deletions crates/cli/src/subcommands/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{env, fs};
extern crate regex;

use crate::util::y_or_n;
use crate::{version, Config};
use crate::{common_args, version, Config};
use clap::{Arg, ArgMatches};
use flate2::read::GzDecoder;
use futures::stream::StreamExt;
Expand All @@ -19,13 +19,7 @@ pub fn cli() -> clap::Command {
clap::Command::new("upgrade")
.about("Checks for updates for the currently running spacetime CLI tool")
.arg(Arg::new("version").help("The specific version to upgrade to"))
.arg(
Arg::new("force")
.short('f')
.long("force")
.help("If this flag is present, the upgrade will be performed even if the version is the same")
.action(clap::ArgAction::SetTrue),
)
.arg(common_args::yes())
.after_help("Run `spacetime help upgrade` for more detailed information.\n")
}

Expand Down
Loading