atros 0.1.0

Automation for the Rest of Us
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::step::System;

pub struct PackageManager {
    pub install_cmd: &'static str,
}

impl PackageManager {
    pub fn get_by_system(system: &System) -> Self {
        PackageManager {
            install_cmd: match system {
                System::Mac => "HOMEBREW_COLOR=1 brew install",
                System::Arch => "pacman -Syu --noconfirm",
                System::Debian => "sudo apt-get install -y",
                System::Fedora => "sudo dnf install -y",
            },
        }
    }
}