pkg_manager 0.1.1

Wrapper to Linux Package Managers
Documentation
1
2
3
4
5
6
7
8
use std::process::Child;
pub trait PkgManager {
    //must return the exit code
    fn install(&mut self, pkg: String) -> Result<Child, std::io::Error>;
    fn uninstall(&mut self, pkg: String) -> Result<Child, std::io::Error>;
    fn no_confirm(&mut self, set: bool);
    fn get_name(&self) -> String;
}