aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/about.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/about.rs')
-rw-r--r--crates/mozart/src/commands/about.rs17
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(())
}