diff options
| author | mo8it <mo8it@proton.me> | 2024-04-09 17:15:12 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-09 17:15:12 +0200 |
| commit | ee7d9762832241b34dc5533bad4ed151e21acab1 (patch) | |
| tree | 01b338580a017346d371d3158b3734b7f544a32f /src | |
| parent | d0fcd8ae8aac43e0c0ac933bd810f11fa79d962e (diff) | |
Use a green color on successful run
Diffstat (limited to 'src')
| -rw-r--r-- | src/run.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(()) } |
