feat: add verbose flag

This commit is contained in:
YuKun Liu committed 2022-06-06 21:48:14 +08:00
1 parent d20e7ab508
commit 421d2ed298
5 files changed
+27 -1

No files matched your search

+9 -1
View File
@@ -114,6 +114,7 @@ pub struct CrateConfig {
pub executable: ExecutableType,
pub dioxus_config: DioxusConfig,
pub release: bool,
pub verbose: bool,
pub custom_profile: Option<String>,
pub features: Option<Vec<String>>,
}
@@ -164,6 +165,7 @@ impl CrateConfig {
let executable = ExecutableType::Binary(output_filename);
let release = false;
let verbose = false;
let custom_profile = None;
let features = None;
@@ -178,7 +180,8 @@ impl CrateConfig {
release,
dioxus_config,
custom_profile,
features
features,
verbose,
})
}
@@ -192,6 +195,11 @@ impl CrateConfig {
self
}
pub fn with_verbose(&mut self, verbose: bool) -> &mut Self {
self.verbose = verbose;
self
}
pub fn set_profile(&mut self, profile: String) -> &mut Self {
self.custom_profile = Some(profile);
self