feat: runner function to dump and return stdout

This commit is contained in:
Gabriele Musco 2023-06-03 13:42:21 +02:00
parent e6a839ae19
commit a0bba9f31d

View file

@ -117,6 +117,11 @@ impl Runner {
}
}
pub fn get_stdout(&mut self) -> String {
self.flush_out();
self.stdout.concat()
}
fn save_log(path_s: String, log: &Vec<String>) -> Result<(), std::io::Error> {
let mut writer = get_writer(&path_s);
let log_s = log.concat();