Skip to content

Commit 315d9e8

Browse files
authored
feat: Mark react-native appcenter as deprecated (#2522)
- Hide the command from the help menu. - Print a deprecation notice when the command is used. Modelled on #2512 Fixes #2488
1 parent 9c62a08 commit 315d9e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/react_native/appcenter.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ use crate::utils::sourcemaps::SourceMapProcessor;
1919

2020
pub fn make_command(command: Command) -> Command {
2121
command
22-
.about("Upload react-native projects for AppCenter.")
22+
.about("[DEPRECATED] Upload react-native projects for AppCenter.")
23+
.hide(true)
2324
.org_arg()
2425
.project_arg(false)
2526
.arg(
@@ -108,6 +109,9 @@ pub fn make_command(command: Command) -> Command {
108109
}
109110

110111
pub fn execute(matches: &ArgMatches) -> Result<()> {
112+
eprintln!("{}", style("⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. \
113+
Use the `sourcemaps upload` command instead.").yellow());
114+
111115
let config = Config::current();
112116
let here = env::current_dir()?;
113117
let here_str: &str = &here.to_string_lossy();

0 commit comments

Comments
 (0)