From ccb1a642a3a7cb8069c399aceb8a33140b630575 Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:19:01 +0200 Subject: [PATCH 1/2] fix(cargo-shuttle): don't print platform info in unrelated commands --- cargo-shuttle/src/lib.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cargo-shuttle/src/lib.rs b/cargo-shuttle/src/lib.rs index ab8e2d802..db078f40d 100644 --- a/cargo-shuttle/src/lib.rs +++ b/cargo-shuttle/src/lib.rs @@ -181,10 +181,15 @@ impl Shuttle { bail!("This command is not supported on the OLD platform (shuttle.rs)."); } - if self.beta { - eprintln!("{}", "INFO: Using NEW platform API (shuttle.dev)".green()); - } else { - eprintln!("{}", "INFO: Using OLD platform API (shuttle.rs)".blue()); + if !matches!( + args.cmd, + Command::Feedback | Command::Generate(_) | Command::Upgrade { .. } + ) { + if self.beta { + eprintln!("{}", "INFO: Using NEW platform API (shuttle.dev)".green()); + } else { + eprintln!("{}", "INFO: Using OLD platform API (shuttle.rs)".blue()); + } } if let Some(ref url) = args.api_url { if (!self.beta && url != API_URL_DEFAULT) || (self.beta && url != API_URL_BETA) { From fac8f48e99de972c2b7b9ea56351201817ef744b Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:33:49 +0200 Subject: [PATCH 2/2] bump cargo-shuttle --- Cargo.lock | 2 +- cargo-shuttle/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba2eceb61..19902815a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -998,7 +998,7 @@ dependencies = [ [[package]] name = "cargo-shuttle" -version = "0.48.2" +version = "0.48.3" dependencies = [ "anyhow", "assert_cmd", diff --git a/cargo-shuttle/Cargo.toml b/cargo-shuttle/Cargo.toml index c6a91bb40..945881569 100644 --- a/cargo-shuttle/Cargo.toml +++ b/cargo-shuttle/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-shuttle" -version = "0.48.2" +version = "0.48.3" edition.workspace = true license.workspace = true repository.workspace = true