Skip to content

Commit

Permalink
chore: rename dump-sources to print-sources
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Feb 20, 2023
1 parent fe7ea59 commit d3e1eb0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/commands/debug_files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ use clap::{ArgMatches, Command};

pub mod bundle_sources;
pub mod check;
pub mod dump_sources;
pub mod find;
pub mod print_sources;
pub mod upload;

macro_rules! each_subcommand {
($mac:ident) => {
$mac!(bundle_sources);
$mac!(check);
$mac!(dump_sources);
$mac!(find);
$mac!(print_sources);
$mac!(upload);
};
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ OPTIONS:
SUBCOMMANDS:
bundle-sources Create a source bundle for a given debug information file
check Check the debug info file at a given path.
dump-sources Print source files linked by the given debug info file.
find Locate debug information files for given debug identifiers.
help Print this message or the help of the given subcommand(s)
print-sources Print source files linked by the given debug info file.
upload Upload debugging information files.

```
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ OPTIONS:
SUBCOMMANDS:
bundle-sources Create a source bundle for a given debug information file
check Check the debug info file at a given path.
dump-sources Print source files linked by the given debug info file.
find Locate debug information files for given debug identifiers.
help Print this message or the help of the given subcommand(s)
print-sources Print source files linked by the given debug info file.
upload Upload debugging information files.

```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```
$ sentry-cli debug-files dump-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic-embedded-ppdb-with-sources.dll
$ sentry-cli debug-files print-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic-embedded-ppdb-with-sources.dll
? success
pe 623535c7-c0ea-4dee-b99b-4669e99a7ecc-a878d1fa has no sources.
portablepdb 623535c7-c0ea-4dee-b99b-4669e99a7ecc-a878d1fa references sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```
$ sentry-cli debug-files dump-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic.pdb
$ sentry-cli debug-files print-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic.pdb
? success
portablepdb 54fdf14a-41a1-426a-a073-8185e11a89d6-83920e6f references sources:
C:/dev/sentry-dotnet/samples/Sentry.Samples.Console.Basic/Program.cs
Expand Down
7 changes: 0 additions & 7 deletions tests/integration/debug_files/dump_sources.rs

This file was deleted.

2 changes: 1 addition & 1 deletion tests/integration/debug_files/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::integration::register_test;

mod check;
mod dump_sources;
mod print_sources;
mod upload;

#[test]
Expand Down
11 changes: 11 additions & 0 deletions tests/integration/debug_files/print_sources.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use crate::integration::register_test;

#[test]
fn command_debug_files_print_sources_ppdb() {
register_test("debug_files/debug_files-print_sources-ppdb.trycmd");
}

#[test]
fn command_debug_files_print_sources_dll_embedded_ppdb_with_sources() {
register_test("debug_files/debug_files-print_sources-dll-embedded-ppdb-with-sources.trycmd");
}

0 comments on commit d3e1eb0

Please sign in to comment.