Add OS specific modules
This commit is contained in:
14
src/windows.rs
Normal file
14
src/windows.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use super::utils::Check;
|
||||
use failure;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
pub fn run_chocolatey(choco: &PathBuf) -> Result<(), failure::Error> {
|
||||
Command::new(&choco)
|
||||
.args(&["upgrade", "all"])
|
||||
.spawn()?
|
||||
.wait()?
|
||||
.check()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user