summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-09 17:15:12 +0200
committermo8it <mo8it@proton.me>2024-04-09 17:15:12 +0200
commitee7d9762832241b34dc5533bad4ed151e21acab1 (patch)
tree01b338580a017346d371d3158b3734b7f544a32f
parentd0fcd8ae8aac43e0c0ac933bd810f11fa79d962e (diff)
Use a green color on successful run
-rw-r--r--src/run.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run.rs b/src/run.rs
index 38f4e0e..2fd6f40 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -1,4 +1,5 @@
use anyhow::{bail, Result};
+use crossterm::style::Stylize;
use std::io::{stdout, Write};
use crate::exercise::Exercise;
@@ -21,8 +22,7 @@ pub fn run(exercise: &Exercise) -> Result<()> {
bail!("Ran {exercise} with errors");
}
- // TODO: Color
- println!("Successfully ran {exercise}");
+ println!("{}", "✓ Successfully ran {exercise}".green());
Ok(())
}