From 4899218cf534df6347073458acf84e32f2eb083b Mon Sep 17 00:00:00 2001 From: Hector Date: Tue, 27 May 2025 12:21:07 +0100 Subject: [PATCH] feat: Mark `react-native appcenter` as deprecated - Hide the command from the help menu. - Print a deprecation notice when the command is used. Modelled on #2512 Fixes #2488 --- src/commands/react_native/appcenter.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/react_native/appcenter.rs b/src/commands/react_native/appcenter.rs index 6f8a2a7afe..bfd28d4ff4 100644 --- a/src/commands/react_native/appcenter.rs +++ b/src/commands/react_native/appcenter.rs @@ -19,7 +19,8 @@ use crate::utils::sourcemaps::SourceMapProcessor; pub fn make_command(command: Command) -> Command { command - .about("Upload react-native projects for AppCenter.") + .about("[DEPRECATED] Upload react-native projects for AppCenter.") + .hide(true) .org_arg() .project_arg(false) .arg( @@ -108,6 +109,9 @@ pub fn make_command(command: Command) -> Command { } pub fn execute(matches: &ArgMatches) -> Result<()> { + eprintln!("{}", style("⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. \ + Use the `sourcemaps upload` command instead.").yellow()); + let config = Config::current(); let here = env::current_dir()?; let here_str: &str = &here.to_string_lossy();