docs(cli): update subcommand comments (#1303)

A bunch of these were copy-pasted from `build`. This commit updates them to be the same as what their `dx help` string is.
This commit is contained in:
Brian Donovan authored and GitHub committed 2023-08-04 17:00:41 -05:00
1 parent 5c62947835
commit a77ff1c820
8 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ use super::*;
// For reference, the rustfmt main.rs file
// https://github.com/rust-lang/rustfmt/blob/master/src/bin/main.rs
/// Build the Rust WASM app and all of its assets.
/// Format some rsx
#[derive(Clone, Debug, Parser)]
pub struct Autoformat {
/// Run in 'check' mode. Exits with 0 if input is formatted correctly. Exits
+1 -1
View File
@@ -6,7 +6,7 @@ use tauri_bundler::{BundleSettings, PackageSettings, SettingsBuilder};
use super::*;
use crate::{build_desktop, cfg::ConfigOptsBundle};
/// Build the Rust WASM app and all of its assets.
/// Bundle the Rust desktop app and all of its assets
#[derive(Clone, Debug, Parser)]
#[clap(name = "bundle")]
pub struct Bundle {
+1 -1
View File
@@ -1,6 +1,6 @@
use super::*;
/// Build the Rust WASM app and all of its assets.
/// Dioxus config file controls
#[derive(Clone, Debug, Deserialize, Subcommand)]
#[clap(name = "config")]
pub enum Config {
+1
View File
@@ -72,6 +72,7 @@ pub enum Commands {
#[clap(name = "fmt")]
Autoformat(autoformat::Autoformat),
/// Check the Rust files in the project for issues.
#[clap(name = "check")]
Check(check::Check),
+1 -1
View File
@@ -2,7 +2,7 @@
use super::*;
/// Build the Rust WASM app and all of its assets.
/// Manage plugins for dioxus cli
#[derive(Clone, Debug, Deserialize, Subcommand)]
#[clap(name = "plugin")]
pub enum Plugin {
+1 -1
View File
@@ -4,7 +4,7 @@ use dioxus_rsx::{BodyNode, CallBody};
use super::*;
/// Build the Rust WASM app and all of its assets.
/// Translate some source file into Dioxus code
#[derive(Clone, Debug, Parser)]
#[clap(name = "translate")]
pub struct Translate {
+1 -1
View File
@@ -1,6 +1,6 @@
use super::*;
/// Build the Rust WASM app and all of its assets.
/// Print the version of this extension
#[derive(Clone, Debug, Parser)]
#[clap(name = "version")]
pub struct Version {}