Skip to content

Commit

Permalink
style: highlight services status warning (#9)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
augustoccesar authored May 23, 2023
1 parent 6db07ed commit ff0158c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linkup-cli/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ff0158c

Please sign in to comment.