From ff0158cee56cee373bffad50c0ca9c5862ad6db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20C=C3=A9sar?= Date: Tue, 23 May 2023 08:32:09 +0200 Subject: [PATCH] style: highlight services status warning (#9) ### Description This PR adds color to the warning that is printed before exiting the program. The idea behind this is to draw more attention to this message regarding possible issues with services. #### From: ![Screenshot 2023-05-23 at 07 53 12](https://github.com/mentimeter/linkup/assets/5747313/bf5de565-5500-4c82-945c-090b2aef1a9a) #### To: ![Screenshot 2023-05-23 at 07 54 21](https://github.com/mentimeter/linkup/assets/5747313/f292f5a3-4278-466a-9ef4-d50752e3891c) --- linkup-cli/src/status.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linkup-cli/src/status.rs b/linkup-cli/src/status.rs index 3fc1fd9..67bf3dc 100644 --- a/linkup-cli/src/status.rs +++ b/linkup-cli/src/status.rs @@ -130,8 +130,7 @@ pub fn status(json: bool) -> Result<(), CliError> { .iter() .any(|s| s.component_kind == "linkup" && s.status != ServerStatus::Ok) { - println!(); - println!("Some linkup services are not running correctly. Please check the status of the services."); + println!("{}", "Some linkup services are not running correctly. Please check the status of the services.".yellow()); std::process::exit(1); }