From 936c168cef858251a27270ccfaea2103589b3a2d Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 12 Oct 2017 10:43:54 -0700 Subject: [PATCH] Add colored output to non-interactive --- src/language.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/language.rs b/src/language.rs index bb7afe4..1cc6ec6 100644 --- a/src/language.rs +++ b/src/language.rs @@ -52,7 +52,10 @@ impl ReplOutput { pub fn print_to_screen(&self) { 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); }