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

use crate::app;

/// Apply format changes across the repository
#[derive(clap::Args, Debug)]
#[command()]
pub struct Cli {}

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