diff options
| author | mo8it <mo8it@proton.me> | 2024-04-25 15:51:12 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-25 15:51:12 +0200 |
| commit | 8bf8b19a5dd4278a636a56440736c8f3df52b7a5 (patch) | |
| tree | 671c1a47bafd5e54a1df49eaa74a35c853a98ae7 | |
| parent | 6d1d42d2dd4a9323b0cd1f964d1651f27a9b328a (diff) | |
Improve output after initialization
| -rw-r--r-- | src/init.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/init.rs b/src/init.rs index addc571..ce239ea 100644 --- a/src/init.rs +++ b/src/init.rs @@ -1,4 +1,5 @@ use anyhow::{bail, Context, Result}; +use crossterm::style::Stylize; use std::{ env::set_current_dir, fs::{self, create_dir}, @@ -58,7 +59,11 @@ pub fn init() -> Result<()> { .stderr(Stdio::null()) .status(); - println!("{POST_INIT_MSG}"); + println!( + "\n{}\n\n{}", + "Initialization done ✓".green(), + POST_INIT_MSG.bold(), + ); Ok(()) } @@ -84,8 +89,5 @@ You probably already initialized Rustlings. Run `cd rustlings` Then run `rustlings` again"; -const POST_INIT_MSG: &str = " -Done initialization! - -Run `cd rustlings` to go into the generated directory. +const POST_INIT_MSG: &str = "Run `cd rustlings` to go into the generated directory. Then run `rustlings` to get started."; |
