diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-22 21:31:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-22 21:31:17 +0900 |
| commit | fae4ee64a48623724eb3dd63deba4dc0184b582e (patch) | |
| tree | 8d2e405c47b3ea7aeaa6d7c43f571df917d15d6e /crates/mozart/src/commands/about.rs | |
| parent | 50218dc68c1e8b1e6b5e5619c5ddb297012c3c15 (diff) | |
| download | php-mozart-fae4ee64a48623724eb3dd63deba4dc0184b582e.tar.gz php-mozart-fae4ee64a48623724eb3dd63deba4dc0184b582e.tar.zst php-mozart-fae4ee64a48623724eb3dd63deba4dc0184b582e.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/about.rs')
| -rw-r--r-- | crates/mozart/src/commands/about.rs | 18 |
1 files changed, 10 insertions, 8 deletions
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(()) } |
