Browse Source

Remove doctor command which doesn't do anything (#3536)

Evan Almloff 5 months ago
parent
commit
c4b5e7dbf1
3 changed files with 0 additions and 18 deletions
  1. 0 11
      packages/cli/src/cli/doctor.rs
  2. 0 6
      packages/cli/src/cli/mod.rs
  3. 0 1
      packages/cli/src/main.rs

+ 0 - 11
packages/cli/src/cli/doctor.rs

@@ -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<StructuredOutput> {
-        Ok(StructuredOutput::Success)
-    }
-}

+ 0 - 6
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"),
         }
     }
 }

+ 0 - 1
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