Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/commands/files/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use crate::config::Config;

pub fn make_command(command: Command) -> Command {
command
.about("Delete a release file.")
.about("[DEPRECATED] Delete a release file.")
.hide(true)
// Backward compatibility with `releases files <VERSION>` commands.
.arg(Arg::new("version").long("version").hide(true))
.arg(
Expand Down
3 changes: 2 additions & 1 deletion src/commands/files/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use crate::{api::Api, config::Config, utils::formatting::Table};

pub fn make_command(command: Command) -> Command {
command
.about("List all release files.")
.about("[DEPRECATED] List all release files.")
.hide(true)
// Backward compatibility with `releases files <VERSION>` commands.
.arg(Arg::new("version").long("version").hide(true))
}
Expand Down
7 changes: 6 additions & 1 deletion src/commands/files/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use anyhow::Result;
use clap::{ArgMatches, Command};
use console::style;

use crate::utils::args::ArgExt;

Expand All @@ -25,7 +26,8 @@ pub fn make_command(mut command: Command) -> Command {
}

command = command
.about("Manage release artifacts.")
.about("[DEPRECATED] Manage release artifacts.")
.hide(true)
.subcommand_required(true)
.arg_required_else_help(true)
.org_arg()
Expand All @@ -42,6 +44,9 @@ pub fn make_command(mut 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` command instead.").yellow());

macro_rules! execute_subcommand {
($name:ident) => {{
if let Some(sub_matches) =
Expand Down
3 changes: 2 additions & 1 deletion src/commands/files/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ use crate::utils::progress::ProgressBarMode;

pub fn make_command(command: Command) -> Command {
command
.about("Upload files for a release.")
.about("[DEPRECATED] Upload files for a release.")
.hide(true)
// Backward compatibility with `releases files <VERSION>` commands.
.arg(Arg::new("version").long("version").hide(true))
.arg(
Expand Down
3 changes: 2 additions & 1 deletion src/commands/sourcemaps/explain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use super::resolve::print_source;

pub fn make_command(command: Command) -> Command {
command
.about("Explain why sourcemaps are not working for a given event.")
.about("[DEPRECATED] Explain why sourcemaps are not working for a given event.")
.hide(true)
.alias("why")
.arg(
Arg::new("event")
Expand Down
1 change: 0 additions & 1 deletion tests/integration/_cases/help/help-windows.trycmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
Expand Down
1 change: 0 additions & 1 deletion tests/integration/_cases/help/help.trycmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Commands:
debug-files Locate, analyze or upload debug information files. [aliases: dif]
deploys Manage deployments for Sentry releases.
events Manage events on Sentry.
files Manage release artifacts.
info Print information about the configuration and verify authentication.
issues Manage issues in Sentry.
login Authenticate with the Sentry server.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
```
$ sentry-cli releases files wat-release upload-sourcemaps --url-prefix '~/assets' build/assets --rewrite
? success
⚠ DEPRECATION NOTICE: This functionality will be removed in a future version of `sentry-cli`. Use the `sourcemaps` command instead.
> Rewriting sources
> Adding source map references
> Nothing to upload
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```
$ sentry-cli sourcemaps explain --help
? success
Explain why sourcemaps are not working for a given event.
[DEPRECATED] Explain why sourcemaps are not working for a given event.

Usage: sentry-cli[EXE] sourcemaps explain [OPTIONS] <EVENT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Manage sourcemaps for Sentry releases.
Usage: sentry-cli[EXE] sourcemaps [OPTIONS] <COMMAND>

Commands:
explain Explain why sourcemaps are not working for a given event.
inject Fixes up JavaScript source files and sourcemaps with debug ids.
resolve Resolve sourcemap for a given line/column position.
upload Upload sourcemaps for a release.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Manage sourcemaps for Sentry releases.
Usage: sentry-cli[EXE] sourcemaps [OPTIONS] <COMMAND>

Commands:
explain Explain why sourcemaps are not working for a given event.
inject Fixes up JavaScript source files and sourcemaps with debug ids.
resolve Resolve sourcemap for a given line/column position.
upload Upload sourcemaps for a release.
Expand Down