feat: add verbose flag
This commit is contained in:
1 parent
d20e7ab508
commit
421d2ed298
5 files changed
+27
-1
No files matched your search
+9
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user