From daf0861eb3abc53e317b2ae3ed7cd0af0f09ab62 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Fri, 7 Feb 2025 11:26:59 +0100 Subject: [PATCH] feat: colour deprecation message Colours the text in the deprecation message to match the yank command's UI. --- src/cli/commands/deprecate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/commands/deprecate.rs b/src/cli/commands/deprecate.rs index 317884d..51d2e85 100644 --- a/src/cli/commands/deprecate.rs +++ b/src/cli/commands/deprecate.rs @@ -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)); } }