vdev/commands/fmt.rs
1use anyhow::Result;
2
3use crate::app;
4
5/// Apply format changes across the repository
6#[derive(clap::Args, Debug)]
7#[command()]
8pub struct Cli {}
9
10impl Cli {
11 pub fn exec(self) -> Result<()> {
12 app::exec("scripts/check-style.sh", ["--fix"], true)?;
13 app::exec("cargo", ["fmt"], true)
14 }
15}