Michal 2 years ago
parent 05631220d5
commit 2e8f49f328
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

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

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

Loading…
Cancel
Save