feat: allow passing zero arguments to tuono CLI

This commit is contained in:
Valerio Ageno
2024-05-26 18:26:36 +02:00
parent d3cee9f1b2
commit 73e142a5d7
+3 -3
View File
@@ -11,7 +11,7 @@ enum Actions {
Dev,
/// Build the production assets
Build,
/// Create a new project folder
/// Scaffold a new project
New,
}
@@ -19,13 +19,13 @@ enum Actions {
#[command(version, about = "The react/rust fullstack framework")]
struct Args {
#[command(subcommand)]
action: Option<Actions>,
action: Actions,
}
pub fn cli() {
let args = Args::parse();
match args.action.unwrap() {
match args.action {
Actions::Dev => {
bundle_axum_source();
create_client_entry_files().unwrap();