Refactor start logic and add stderr streaming
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user