fix: report what happened instead of losing it
This commit is contained in:
@@ -15,6 +15,7 @@ fn compose(quiet: bool) -> Argv {
|
||||
pub struct Run {
|
||||
service: String,
|
||||
inner: Argv,
|
||||
quiet: bool,
|
||||
}
|
||||
|
||||
impl Run {
|
||||
@@ -22,13 +23,21 @@ impl Run {
|
||||
Self {
|
||||
service: service.to_string(),
|
||||
inner,
|
||||
quiet: false,
|
||||
}
|
||||
}
|
||||
|
||||
// compose narrates the container it creates before handing over, which is
|
||||
// progress along the way rather than what was asked for
|
||||
pub fn quiet(mut self, quiet: bool) -> Self {
|
||||
self.quiet = quiet;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl Cmd for Run {
|
||||
fn argv(&self) -> Argv {
|
||||
compose(false)
|
||||
compose(self.quiet)
|
||||
.arg("run")
|
||||
.arg("--rm")
|
||||
.arg(&self.service)
|
||||
|
||||
Reference in New Issue
Block a user