From fae4ee64a48623724eb3dd63deba4dc0184b582e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 22 Feb 2026 21:31:17 +0900 Subject: fix(about): respect --quiet flag by using console output Replace direct println\! with console.write_stdout() so the about command honors verbosity settings, matching Composer's behavior. Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/commands/about.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'crates/mozart/src') diff --git a/crates/mozart/src/commands/about.rs b/crates/mozart/src/commands/about.rs index 9c3ca95..83332b7 100644 --- a/crates/mozart/src/commands/about.rs +++ b/crates/mozart/src/commands/about.rs @@ -7,21 +7,23 @@ pub struct AboutArgs {} pub async fn execute( _args: &AboutArgs, _cli: &super::Cli, - _console: &console::Console, + console: &console::Console, ) -> anyhow::Result<()> { let version = env!("CARGO_PKG_VERSION"); - println!( - "{}", - console::info(&format!( + console.write_stdout( + &console::info(&format!( "Mozart - Dependency Manager for PHP - version {version}" )) + .to_string(), + console::Verbosity::Normal, ); - println!( - "{}", - console::comment( + console.write_stdout( + &console::comment( "Mozart is a dependency manager tracking local dependencies of your projects and libraries. -See https://getcomposer.org/ for more information." +See https://getcomposer.org/ for more information.", ) + .to_string(), + console::Verbosity::Normal, ); Ok(()) } -- cgit v1.3.1