1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;

use crate::app;

/// Compute the release version of Vector.
#[derive(clap::Args, Debug)]
pub(super) struct Cli {}

impl Cli {
    pub(super) fn exec(self) -> Result<()> {
        app::set_repo_dir()?;
        let version = app::version()?;
        println!("{version}");
        Ok(())
    }
}