diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-14 12:55:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-14 12:55:50 +0900 |
| commit | f2a946fad67161b65d09ce26bee6604d38b8c42f (patch) | |
| tree | 78a1c402fa1f9fab4a3724624053d81e95f761a1 /crates/mozart/src/commands/about.rs | |
| parent | 08a845acdd831a9de186696b9614ee397c8e7c68 (diff) | |
| download | php-mozart-f2a946fad67161b65d09ce26bee6604d38b8c42f.tar.gz php-mozart-f2a946fad67161b65d09ce26bee6604d38b8c42f.tar.zst php-mozart-f2a946fad67161b65d09ce26bee6604d38b8c42f.zip | |
implement about command
Diffstat (limited to 'crates/mozart/src/commands/about.rs')
| -rw-r--r-- | crates/mozart/src/commands/about.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/about.rs b/crates/mozart/src/commands/about.rs index bf3742d..4b12c08 100644 --- a/crates/mozart/src/commands/about.rs +++ b/crates/mozart/src/commands/about.rs @@ -1,8 +1,23 @@ +use crate::console; use clap::Args; #[derive(Args)] pub struct AboutArgs {} pub fn execute(_args: &AboutArgs, _cli: &super::Cli) -> anyhow::Result<()> { - todo!() + let version = env!("CARGO_PKG_VERSION"); + println!( + "{}", + console::info(&format!( + "Mozart - Dependency Manager for PHP - version {version}" + )) + ); + println!( + "{}", + console::comment( + "Mozart is a dependency manager tracking local dependencies of your projects and libraries. +See https://getcomposer.org/ for more information." + ) + ); + Ok(()) } |
