feat: publish cli
This commit is contained in:
1 parent
12be67bf4c
commit
44d7b32992
12 files changed
+240
-191
No files matched your search
+20
-21
@@ -10,38 +10,37 @@ pub mod serve;
|
||||
pub mod translate;
|
||||
pub mod watch;
|
||||
|
||||
/// Build, bundle & ship your Rust WASM application to the web.
|
||||
/// Build, bundle, & ship your Dioxus app.
|
||||
///
|
||||
///
|
||||
#[derive(StructOpt)]
|
||||
#[structopt(name = "trunk")]
|
||||
pub struct Trunk {
|
||||
#[structopt(name = "dioxus")]
|
||||
pub struct Cli {
|
||||
#[structopt(subcommand)]
|
||||
pub action: TrunkSubcommands,
|
||||
|
||||
/// Path to the Trunk config file [default: Trunk.toml]
|
||||
#[structopt(long, parse(from_os_str), env = "TRUNK_CONFIG")]
|
||||
pub config: Option<PathBuf>,
|
||||
pub action: Commands,
|
||||
|
||||
/// Enable verbose logging.
|
||||
#[structopt(short)]
|
||||
pub v: bool,
|
||||
//
|
||||
// // note: dioxus is still roughly compatible with trunk
|
||||
// /// Path to the Trunk config file [default: Trunk.toml]
|
||||
// #[structopt(long, parse(from_os_str), env = "TRUNK_CONFIG")]
|
||||
// pub config: Option<PathBuf>,
|
||||
}
|
||||
|
||||
#[derive(StructOpt)]
|
||||
pub enum TrunkSubcommands {
|
||||
/// Build the Rust WASM app and all of its assets.
|
||||
Build(build::Build),
|
||||
|
||||
pub enum Commands {
|
||||
// /// 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.
|
||||
// Serve(serve::Serve),
|
||||
|
||||
/// Build, watch & serve the Rust WASM app and all of its assets.
|
||||
///
|
||||
///
|
||||
Serve(serve::Serve),
|
||||
// /// Clean output artifacts.
|
||||
// Clean(clean::Clean),
|
||||
|
||||
/// Clean output artifacts.
|
||||
Clean(clean::Clean),
|
||||
|
||||
/// Trunk config controls.
|
||||
Config(config::Config),
|
||||
// /// Trunk config controls.
|
||||
// Config(config::Config),
|
||||
}
|
||||
Reference in new issue
Block a user