xtask/commands/
cargo_fmt.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use xshell::{cmd, Error, Shell};

pub(crate) fn run(shell: &Shell) -> Result<(), Error> {
    // extendr-api, extendr-macros, extendr-engine, xtask
    cmd!(shell, "cargo fmt --all").run()?;
    // extendrtests
    cmd!(
        shell,
        "cargo fmt --all --manifest-path tests/extendrtests/src/rust/Cargo.toml"
    )
    .run()?;

    Ok(())
}