feat: add init command

This commit is contained in:
mrxiaozhuox committed 2022-01-23 01:29:36 +08:00
1 parent d18a93f129
commit 0e2c05be66
15 files changed
+151 -192

No files matched your search

+6 -2
View File
@@ -5,6 +5,7 @@ pub mod cfg;
pub mod clean;
pub mod serve;
pub mod translate;
pub mod init;
/// Build, bundle, & ship your Dioxus app.
///
@@ -27,12 +28,15 @@ pub struct Cli {
#[derive(StructOpt)]
pub enum Commands {
// /// Build the Rust WASM app and all of its assets.
/// Build the Rust WASM app and all of its assets.
Build(build::Build),
/// Translate some source file into Dioxus code.
Translate(translate::Translate),
// /// Build, watch & serve the Rust WASM app and all of its assets.
/// Build, watch & serve the Rust WASM app and all of its assets.
Serve(serve::Serve),
/// Init a new project for Dioxus.
Init(init::Init),
// /// Clean output artifacts.
// Clean(clean::Clean),