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

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

pub async fn execute(
    _args: &AboutArgs,
    _cli: &super::Cli,
    io: std::sync::Arc<std::sync::Mutex<Box<dyn IoInterface>>>,
) -> anyhow::Result<()> {
    console_writeln!(
        io,
        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>"#,
    );
    Ok(())
}