Files
heartwood/crates/radicle-cli/src/commands/diff.rs
T
Lorenz Leutgeb 72cf3d1919 cli/diff: Use clap
The implementation of the *deprecated* command is removed, it now
directly invokes `git diff`.
2025-10-15 10:30:34 +02:00

15 lines
351 B
Rust

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));
}