pub fn install(name: String) -> Result<(), String> {
    match Platform::get() {
        Platform::Ubuntu => {
            apt_install(name)
        },
        Platform::MacOS => {
            brew_install(name)
        },
        Platform::Windows => {
            scoop_install(name)
        },
        Platform::Unknown => {
            apt_install(name)
        },
    }
}
/// Install a package using the systems expected package manager
Install a package using the systems expected package manager
Install a package using the systems expected package manager
pub fn install(name: String) -> Result<(), String> {
    match Platform::get() {
        Platform::Ubuntu => {
            apt_install(name)
        },
        Platform::MacOS => {
            brew_install(name)
        },
        Platform::Windows => {
            scoop_install(name)
        },
        Platform::Unknown => {
            apt_install(name)
        },
    }
}
pub fn install ( name : String ) -> Result < ( ) , String > { match Platform :: get ( ) { Platform :: Ubuntu => { apt_install ( name ) } , Platform :: MacOS => { brew_install ( name ) } , Platform :: Windows => { scoop_install ( name ) } , Platform :: Unknown => { apt_install ( name ) } , } }
Install a package using the systems expected package manager
Install a package using the systems expected package manager
name
String
name
String