We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299c6ad commit ab34a1aCopy full SHA for ab34a1a
stringify.mbt
@@ -94,7 +94,11 @@ let output_colorful_text_for_terminal : Ref[Bool] = Ref::new(false)
94
fn Array::push_line(self : Array[String], tag : String, line : String) -> Unit {
95
let tagged_line = "\{tag}\{line}"
96
if output_colorful_text_for_terminal.val {
97
- ...
+ match tag {
98
+ "+" => self.push("\u001B[32m\{tagged_line}\u001B[39m") // Green
99
+ "-" => self.push("\u001B[31m\{tagged_line}\u001B[39m") // Red
100
+ _ => self.push(tagged_line)
101
+ }
102
} else {
103
self.push(tagged_line)
104
}
0 commit comments