jarvy 0.0.5

Jarvy is a fast, cross-platform CLI that installs and manages developer tools across macOS and Linux.
Documentation
//! erlang - Erlang programming language
//!
//! Erlang is a programming language used to build massively scalable soft real-time systems
//! with requirements on high availability. It is the runtime for Elixir.
//!
//! This tool uses the ToolSpec pattern for declarative installation.

use crate::define_tool;

define_tool!(ERLANG, {
    command: "erl",
    macos: { brew: "erlang" },
    linux: { apt: "erlang", dnf: "erlang", pacman: "erlang", apk: "erlang" },
    windows: { winget: "Erlang.ErlangOTP", choco: "erlang" },
    bsd: { pkg: "erlang" },
});

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn ensure_erlang_no_panic() {
        let res = ensure("");
        assert!(res.is_ok() || res.is_err());
    }
}