Support for updating the Atom Package Manager

This commit is contained in:
Sebastian Thiel
2018-06-06 07:41:05 +02:00
committed by Roey Darwish Dror
parent 4c31530c0b
commit 6c2a0c476b

View File

@@ -268,6 +268,16 @@ fn main() -> Result<(), Error> {
.report("Node Package Manager", &mut reports);
}
if let Ok(apm) = which("apm") {
terminal.print_separator("Atom Package Manager");
Command::new(&apm)
.args(&["upgrade", "--confirm=false"])
.spawn()?
.wait()
.map_err(Error::from)?
.report("Atom Package Manager", &mut reports);
}
let mut reports: Vec<_> = reports.into_iter().collect();
reports.sort();