diff --git a/packages/cli/src/cli/doctor.rs b/packages/cli/src/cli/doctor.rs deleted file mode 100644 index 83a2778f6..000000000 --- a/packages/cli/src/cli/doctor.rs +++ /dev/null @@ -1,11 +0,0 @@ -use crate::{Result, StructuredOutput}; -use clap::Parser; - -#[derive(Clone, Debug, Parser)] -pub struct Doctor {} - -impl Doctor { - pub async fn run(self) -> Result { - Ok(StructuredOutput::Success) - } -} diff --git a/packages/cli/src/cli/mod.rs b/packages/cli/src/cli/mod.rs index 1c3844e10..cdd36a09a 100644 --- a/packages/cli/src/cli/mod.rs +++ b/packages/cli/src/cli/mod.rs @@ -5,7 +5,6 @@ pub(crate) mod check; pub(crate) mod clean; pub(crate) mod config; pub(crate) mod create; -pub(crate) mod doctor; pub(crate) mod init; pub(crate) mod link; pub(crate) mod run; @@ -87,10 +86,6 @@ pub(crate) enum Commands { #[clap(name = "run")] Run(run::RunArgs), - /// Ensure all the tooling is installed and configured correctly - #[clap(name = "doctor")] - Doctor(doctor::Doctor), - /// Dioxus config file controls. #[clap(subcommand)] #[clap(name = "config")] @@ -111,7 +106,6 @@ impl Display for Commands { Commands::Check(_) => write!(f, "check"), Commands::Bundle(_) => write!(f, "bundle"), Commands::Run(_) => write!(f, "run"), - Commands::Doctor(_) => write!(f, "doctor"), } } } diff --git a/packages/cli/src/main.rs b/packages/cli/src/main.rs index 3f92e9d0f..55f700533 100644 --- a/packages/cli/src/main.rs +++ b/packages/cli/src/main.rs @@ -52,7 +52,6 @@ async fn main() { Commands::Serve(opts) => opts.serve().await, Commands::Bundle(opts) => opts.bundle().await, Commands::Run(opts) => opts.run().await, - Commands::Doctor(opts) => opts.run().await, }; // Provide a structured output for third party tools that can consume the output of the CLI