Support for updating the Atom Package Manager
This commit is contained in:
committed by
Roey Darwish Dror
parent
4c31530c0b
commit
6c2a0c476b
10
src/main.rs
10
src/main.rs
@@ -268,6 +268,16 @@ fn main() -> Result<(), Error> {
|
|||||||
.report("Node Package Manager", &mut reports);
|
.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();
|
let mut reports: Vec<_> = reports.into_iter().collect();
|
||||||
reports.sort();
|
reports.sort();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user