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

use crate::app;

/// Check that the 3rd-party license file is up to date
#[derive(clap::Args, Debug)]
#[command()]
pub struct Cli {}

impl Cli {
    pub fn exec(self) -> Result<()> {
        app::exec("dd-rust-license-tool", ["check"], true).inspect_err(|_| {
            info!("Run `cargo vdev build licenses` to regenerate the file");
        })
    }
}