mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-16 01:43:45 +01:00
feat: colour deprecation message
Colours the text in the deprecation message to match the yank command's UI.
This commit is contained in:
parent
5939050ee3
commit
daf0861eb3
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::cli::get_index;
|
||||
use crate::cli::{get_index, style::SUCCESS_STYLE};
|
||||
use anyhow::Context;
|
||||
use clap::Args;
|
||||
use pesde::{
|
||||
|
@ -91,7 +91,7 @@ impl DeprecateCommand {
|
|||
anyhow::bail!("failed to {prefix}deprecate package: {code} ({text})");
|
||||
}
|
||||
_ => {
|
||||
println!("{text}");
|
||||
println!("{}", SUCCESS_STYLE.apply_to(text));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue