orbiter 0.9.0

A cross-shell plugin and package manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::utils::{config::ShellSpecificCommand, script::*, shells::SupportedShell};

pub fn install(
    current_shell: &SupportedShell,
    install_cmd: &ShellSpecificCommand,
) -> Result<String, Box<dyn std::error::Error>> {
    match install_cmd {
        ShellSpecificCommand::Generic(generic) => {
            run_cmd_in_shell_with_output(current_shell, generic)
        }
        ShellSpecificCommand::ShellSpecific(shell_specific) => {
            run_shell_specific_cmd(current_shell, shell_specific)
        }
    }
}