aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/about.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-06 03:38:32 +0900
committernsfisis <nsfisis@gmail.com>2026-05-06 04:05:13 +0900
commitbf96f8292c0e9818c8b5fc8713ca7506e4338a49 (patch)
tree61ddecc119ee0ae344eabdb9c0f784cdb3461a44 /crates/mozart/src/commands/about.rs
parentb97e34358be5df05a3db9f5f3ef1502eaa94b1c0 (diff)
downloadphp-mozart-bf96f8292c0e9818c8b5fc8713ca7506e4338a49.tar.gz
php-mozart-bf96f8292c0e9818c8b5fc8713ca7506e4338a49.tar.zst
php-mozart-bf96f8292c0e9818c8b5fc8713ca7506e4338a49.zip
refactor(console): add write macros and migrate commands to use them
Diffstat (limited to 'crates/mozart/src/commands/about.rs')
-rw-r--r--crates/mozart/src/commands/about.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/crates/mozart/src/commands/about.rs b/crates/mozart/src/commands/about.rs
index a8566d1..1dd6b85 100644
--- a/crates/mozart/src/commands/about.rs
+++ b/crates/mozart/src/commands/about.rs
@@ -2,6 +2,7 @@ use clap::Args;
use mozart_core::MOZART_VERSION;
use mozart_core::console;
use mozart_core::console_format;
+use mozart_core::console_writeln;
#[derive(Args)]
pub struct AboutArgs {}
@@ -11,16 +12,13 @@ pub async fn execute(
_cli: &super::Cli,
console: &console::Console,
) -> anyhow::Result<()> {
- console.write_stdout(
+ console_writeln!(
+ console,
&console_format!(
- "<info>Mozart - Dependency Manager for PHP - version {MOZART_VERSION}</info>",
+ r#"<info>Mozart - Dependency Manager for PHP - version {MOZART_VERSION}</info>
+<comment>Mozart is a dependency manager tracking local dependencies of your projects and libraries.
+See https://getcomposer.org/ for more information.</comment>"#
),
- console::Verbosity::Normal,
- );
- console.write_stdout(
- &console_format!("<comment>Mozart is a dependency manager tracking local dependencies of your projects and libraries.
-See https://getcomposer.org/ for more information.</comment>"),
- console::Verbosity::Normal,
);
Ok(())
}