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

use crate::app;

/// Check that all files are formatted properly
#[derive(clap::Args, Debug)]
#[command()]
pub struct Cli {}

impl Cli {
    pub fn exec(self) -> Result<()> {
        app::exec::<&str>("scripts/check-style.sh", [], true)?;
        app::exec("cargo", ["fmt", "--", "--check"], true)
    }
}