-
-
Notifications
You must be signed in to change notification settings - Fork 230
feat: Mark all files
subcommands as deprecated.
#2512
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
Conversation
425455b
to
dbdb6a3
Compare
files
subcommands as deprecated.files
subcommands as deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two small comments, otherwise looks good! I'm gonna open an issue to fully remove these commands with the next major release
src/commands/files/mod.rs
Outdated
println!("{}", style("⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. \ | ||
Use the `sourcemaps` command instead.").yellow()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably use eprintln!
for this:
println!("{}", style("⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. \ | |
Use the `sourcemaps` command instead.").yellow()); | |
eprintln!("{}", style("⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. \ | |
Use the `sourcemaps` command instead.").yellow()); |
We will also need to update this docs section (including subsections) to reflect this change; that page makes it seem like the sourcemaps
commands are a "special case" of the files
commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks for the reminder: getsentry/sentry-docs#13767
The commands are now hidden from help output (making them less likely to be discovered and used), and they are marked with a deprecation notice. When invoking the commands, a deprecation notice will be printed as well. Also the previously deprecated `sourcemaps explain` command (which was explained by an in-app sourcemaps debugger) which already prints a deprecation notice is also being marked as hidden to be less discoverabe.
dbdb6a3
to
1c4594c
Compare
The commands are now hidden from help output (making them less likely to be discovered and used), and they are marked with a deprecation notice.
When invoking the commands, a deprecation notice will be printed as well.
Also the previously deprecated
sourcemaps explain
command (which was replaced by an in-app sourcemaps debugger) which already prints a deprecation notice is also being marked as hidden to be less discoverable.Ref #2513