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

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

pub async fn execute(
    _args: &AboutArgs,
    _cli: &super::Cli,
    console: &console::Console,
) -> anyhow::Result<()> {
    console.write_stdout(
        &console_format!(
            "<info>Mozart - Dependency Manager for PHP - version {MOZART_VERSION}</info>",
        ),
        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(())
}