use crate::ninja::exec; use std::error::Error; use std::fs; use std::path::PathBuf; pub fn clean(_: Vec, root: PathBuf) -> Result<(), Box> { exec("cargo", &root, vec!["clean".to_string()])?; fs::remove_dir_all(root.join("assets").join("dist"))?; fs::remove_dir_all(root.join("assets").join("final"))?; Ok(()) }