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

+1
View File
@@ -14,6 +14,7 @@ impl Build {
// change the release state.
crate_config.with_release(self.build.release);
crate_config.with_verbose(self.build.verbose);
if self.build.example.is_some() {
crate_config.as_example(self.build.example.unwrap());
+10
View File
@@ -12,6 +12,11 @@ pub struct ConfigOptsBuild {
#[serde(default)]
pub release: bool,
// Use verbose output [default: false]
#[clap(long)]
#[serde(default)]
pub verbose: bool,
/// Build a example [default: ""]
#[clap(long)]
pub example: Option<String>,
@@ -44,6 +49,11 @@ pub struct ConfigOptsServe {
#[serde(default)]
pub release: bool,
// Use verbose output [default: false]
#[clap(long)]
#[serde(default)]
pub verbose: bool,
/// Build with custom profile
#[clap(long)]
pub profile: Option<String>,
+1
View File
@@ -19,6 +19,7 @@ impl Serve {
// change the relase state.
crate_config.with_release(self.serve.release);
crate_config.with_verbose(self.serve.verbose);
if self.serve.example.is_some() {
crate_config.as_example(self.serve.example.unwrap());