blob: c956b68930ad463b69a636b891dae91db8d09c2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use std::{path::Path, process::Command};
use crate::cli::Args;
pub fn clean_ext(path: &Path, cli: &Args) {
let mut args = vec!["clean", "--manifest-path", path.to_str().unwrap()];
if cli.dry_run {
args.push("--dry-run");
}
if cli.doc {
args.push("--doc");
}
Command::new("cargo")
.args(args)
.spawn()
.unwrap()
.wait_with_output()
.unwrap();
}
|