Skip to content

Commit c6d075d

Browse files
ref: Define command modules manually (#2622)
Don't use the `each_subcommand` macro, as this prevents `cargo fmt` from finding any command files to format
1 parent ea33ed8 commit c6d075d

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

src/commands/mod.rs

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,33 @@ use crate::utils::system::{load_dotenv, print_error, set_panic_hook, QuietExit};
1919
use crate::utils::update::run_sentrycli_update_nagger;
2020
use crate::utils::value_parsers::auth_token_parser;
2121

22+
mod bash_hook;
23+
mod debug_files;
24+
mod deploys;
2225
mod derive_parser;
26+
mod events;
27+
mod files;
28+
mod info;
29+
mod issues;
30+
mod login;
31+
mod mobile_app;
32+
mod monitors;
33+
mod organizations;
34+
mod projects;
35+
mod react_native;
36+
mod releases;
37+
mod repos;
38+
mod send_envelope;
39+
mod send_event;
40+
mod send_metric;
41+
mod sourcemaps;
42+
#[cfg(not(feature = "managed"))]
43+
mod uninstall;
44+
#[cfg(not(feature = "managed"))]
45+
mod update;
46+
mod upload_dif;
47+
mod upload_dsym;
48+
mod upload_proguard;
2349

2450
macro_rules! each_subcommand {
2551
($mac:ident) => {
@@ -53,14 +79,6 @@ macro_rules! each_subcommand {
5379
};
5480
}
5581

56-
macro_rules! import_subcommand {
57-
($name:ident) => {
58-
pub mod $name;
59-
};
60-
}
61-
62-
each_subcommand!(import_subcommand);
63-
6482
const ABOUT: &str = "
6583
Command line utility for Sentry.
6684

0 commit comments

Comments
 (0)