feat: colour deprecation message

Colours the text in the deprecation message to
match the yank command's UI.
This commit is contained in:
daimond113 2025-02-07 11:26:59 +01:00
parent 5939050ee3
commit daf0861eb3
No known key found for this signature in database
GPG key ID: 640DC95EC1190354

View file

@ -1,4 +1,4 @@
use crate::cli::get_index; use crate::cli::{get_index, style::SUCCESS_STYLE};
use anyhow::Context; use anyhow::Context;
use clap::Args; use clap::Args;
use pesde::{ use pesde::{
@ -91,7 +91,7 @@ impl DeprecateCommand {
anyhow::bail!("failed to {prefix}deprecate package: {code} ({text})"); anyhow::bail!("failed to {prefix}deprecate package: {code} ({text})");
} }
_ => { _ => {
println!("{text}"); println!("{}", SUCCESS_STYLE.apply_to(text));
} }
} }