Remove doctor command which doesn't do anything (#3536)
This commit is contained in:
1 parent
76cf2f0bfe
commit
c4b5e7dbf1
3 files changed
-18
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user