Add OS specific modules

This commit is contained in:
Roey Darwish Dror
2018-06-28 12:16:54 +03:00
parent 335bacee0c
commit 3de4b2c5b1
7 changed files with 145 additions and 140 deletions

14
src/windows.rs Normal file
View 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(())
}