Add colored output to non-interactive
This commit is contained in:
parent
04cb1616f7
commit
f9c9ed6b29
@ -52,7 +52,10 @@ impl ReplOutput {
|
|||||||
|
|
||||||
pub fn print_to_screen(&self) {
|
pub fn print_to_screen(&self) {
|
||||||
for line in self.artifacts.iter() {
|
for line in self.artifacts.iter() {
|
||||||
println!("{}: {}", line.stage_name, line.debug_output);
|
let color = line.text_color;
|
||||||
|
let stage = line.stage_name.color(color).to_string();
|
||||||
|
let output = line.debug_output.color(color).to_string();
|
||||||
|
println!("{}: {}", stage, output);
|
||||||
}
|
}
|
||||||
println!("{}", self.output);
|
println!("{}", self.output);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user