Skip to content

Commit c4b5e7d

Browse files
authored
Remove doctor command which doesn't do anything (#3536)
1 parent 76cf2f0 commit c4b5e7d

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

packages/cli/src/cli/doctor.rs

-11
This file was deleted.

packages/cli/src/cli/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub(crate) mod check;
55
pub(crate) mod clean;
66
pub(crate) mod config;
77
pub(crate) mod create;
8-
pub(crate) mod doctor;
98
pub(crate) mod init;
109
pub(crate) mod link;
1110
pub(crate) mod run;
@@ -87,10 +86,6 @@ pub(crate) enum Commands {
8786
#[clap(name = "run")]
8887
Run(run::RunArgs),
8988

90-
/// Ensure all the tooling is installed and configured correctly
91-
#[clap(name = "doctor")]
92-
Doctor(doctor::Doctor),
93-
9489
/// Dioxus config file controls.
9590
#[clap(subcommand)]
9691
#[clap(name = "config")]
@@ -111,7 +106,6 @@ impl Display for Commands {
111106
Commands::Check(_) => write!(f, "check"),
112107
Commands::Bundle(_) => write!(f, "bundle"),
113108
Commands::Run(_) => write!(f, "run"),
114-
Commands::Doctor(_) => write!(f, "doctor"),
115109
}
116110
}
117111
}

packages/cli/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ async fn main() {
5252
Commands::Serve(opts) => opts.serve().await,
5353
Commands::Bundle(opts) => opts.bundle().await,
5454
Commands::Run(opts) => opts.run().await,
55-
Commands::Doctor(opts) => opts.run().await,
5655
};
5756

5857
// Provide a structured output for third party tools that can consume the output of the CLI

0 commit comments

Comments
 (0)