aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/about.rs
blob: 4b12c081a8b4a237e626b59a1a32df7d691f3c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::console;
use clap::Args;

#[derive(Args)]
pub struct AboutArgs {}

pub fn execute(_args: &AboutArgs, _cli: &super::Cli) -> anyhow::Result<()> {
    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(())
}