revision: cli help docs (#2349)

This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-04-22 09:57:56 -05:00
1 parent 8702296281
commit 4e0c7940cc
1 file changed
+8 -8
+8 -8
View File
@@ -40,40 +40,40 @@ pub struct Cli {
#[clap(short)] #[clap(short)]
pub v: bool, pub v: bool,
/// Specify bin target /// Specify a binary target.
#[clap(global = true, long)] #[clap(global = true, long)]
pub bin: Option<String>, pub bin: Option<String>,
} }
#[derive(Parser)] #[derive(Parser)]
pub enum Commands { pub enum Commands {
/// Build the Rust WASM app and all of its assets. /// Build the Dioxus project and all of its assets.
Build(build::Build), Build(build::Build),
/// Translate some source file into Dioxus code. /// Translate a source file into Dioxus code.
Translate(translate::Translate), Translate(translate::Translate),
/// Build, watch & serve the Rust WASM app and all of its assets. /// Build, watch & serve the Dioxus project and all of its assets.
Serve(serve::Serve), Serve(serve::Serve),
/// Create a new project for Dioxus. /// Create a new project for Dioxus.
New(create::Create), New(create::Create),
/// Init a new project for Dioxus in an existing directory. /// Init a new project for Dioxus in an existing directory.
/// Will attempt to keep your project in a good state /// Will attempt to keep your project in a good state.
Init(init::Init), Init(init::Init),
/// Clean output artifacts. /// Clean output artifacts.
Clean(clean::Clean), Clean(clean::Clean),
/// Bundle the Rust desktop app and all of its assets. /// Bundle the Dioxus app into a shippable object.
Bundle(bundle::Bundle), Bundle(bundle::Bundle),
/// Format some rsx /// Automatically format RSX.
#[clap(name = "fmt")] #[clap(name = "fmt")]
Autoformat(autoformat::Autoformat), Autoformat(autoformat::Autoformat),
/// Check the Rust files in the project for issues. /// Check the project for any issues.
#[clap(name = "check")] #[clap(name = "check")]
Check(check::Check), Check(check::Check),