Add colored output to non-interactive

This commit is contained in:
greg 2017-10-12 10:43:54 -07:00
parent db835f42aa
commit 936c168cef

View File

@ -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);
} }