Michal 2 years ago
parent 67f1b9cfbe
commit 41aa6a2bed

@ -18,7 +18,10 @@ pub fn clone(verbose: bool) {
dirs.retain(|x| *x != "./mlc.toml" && *x != ".\\mlc.toml");
dirs.retain(|x| *x != "./out" && *x != ".\\out");
if config.mode.repository.is_some() {
dirs.retain(|x| *x != format!("./{}", config.mode.repository.as_ref().unwrap().name) && *x != format!(".\\{}", config.mode.repository.as_ref().unwrap().name));
dirs.retain(|x| {
*x != format!("./{}", config.mode.repository.as_ref().unwrap().name)
&& *x != format!(".\\{}", config.mode.repository.as_ref().unwrap().name)
});
}
log!(verbose, "Paths with mlc.toml excluded: {:?}", dirs);

@ -120,7 +120,12 @@ pub fn prune(verbose: bool) {
for p in &mut packages_to_delete {
println!(
"{}",
format!(" {}-{}", p.name.replace("./", "").replace(".\\", ""), p.ver).bold()
format!(
" {}-{}",
p.name.replace("./", "").replace(".\\", ""),
p.ver
)
.bold()
);
}
}

Loading…
Cancel
Save