radicle-cli 0.20.0

Radicle CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::{ffi::OsString, process};

pub fn run(args: Vec<OsString>) -> anyhow::Result<()> {
    crate::warning::deprecated("rad diff", "git diff");

    let mut child = process::Command::new("git")
        .arg("diff")
        .args(args)
        .spawn()?;

    let exit_status = child.wait()?;

    process::exit(exit_status.code().unwrap_or(1));
}