mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-06 08:09:01 +00:00
feat: runner function to dump and return stdout
This commit is contained in:
parent
e6a839ae19
commit
a0bba9f31d
1 changed files with 5 additions and 0 deletions
|
@ -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> {
|
fn save_log(path_s: String, log: &Vec<String>) -> Result<(), std::io::Error> {
|
||||||
let mut writer = get_writer(&path_s);
|
let mut writer = get_writer(&path_s);
|
||||||
let log_s = log.concat();
|
let log_s = log.concat();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue