feat: commit code
This commit is contained in:
1 parent
eea01f7f8c
commit
140d7ad7ed
6 files changed
+124
-23
No files matched your search
@@ -18,6 +18,8 @@ pub enum Config {
|
||||
#[clap(long, default_value = "web")]
|
||||
platform: String,
|
||||
},
|
||||
/// Format Print Dioxus-Config.
|
||||
FormatPrint {}
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -43,6 +45,9 @@ impl Config {
|
||||
file.write_all(content.as_bytes())?;
|
||||
log::info!("🚩 Init config file completed.");
|
||||
}
|
||||
Config::FormatPrint {} => {
|
||||
println!("{:#?}", crate::CrateConfig::new()?.dioxus_config);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user