fix: report what happened instead of losing it

This commit is contained in:
2026-09-09 11:59:58 +00:00
parent 75f293ce36
commit b4b6d5918f
7 changed files with 168 additions and 33 deletions

View File

@@ -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)