Refactor start logic and add stderr streaming

This commit is contained in:
Hector van der Aa
2025-12-03 21:44:11 +01:00
parent 377ca8b00b
commit 9d3d054b2a
3 changed files with 64 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
use std::{
fmt::{self, Display, write},
fmt::{self, Display},
str::FromStr,
};
@@ -151,6 +151,13 @@ impl StreamLine {
source: StreamSource::Stdout,
}
}
pub fn stderr<S: Into<String>>(line: S) -> Self {
Self {
line: line.into(),
source: StreamSource::Stderr,
}
}
}
impl Display for StreamLine {