jarvy 0.3.0

Jarvy is a fast, cross-platform CLI that installs and manages developer tools across macOS and Linux.
Documentation
//! deno - a modern runtime for JavaScript and TypeScript
//!
//! Deno is a secure runtime for JavaScript and TypeScript built on V8.
//!
//! This tool uses the ToolSpec pattern for declarative installation.

use crate::define_tool;

define_tool!(DENO, {
    command: "deno",
    macos: { brew: "deno" },
    linux: { brew: "deno" },
    windows: { winget: "DenoLand.Deno" },
    bsd: { pkg: "deno" },
});

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

    #[test]
    fn deno_registration_shape() {
        assert_eq!(DENO.command, "deno");
        let mac = DENO.macos.expect("must support macOS");
        assert_eq!(mac.brew, Some("deno"));
        let win = DENO.windows.expect("must support Windows");
        assert_eq!(win.winget, Some("DenoLand.Deno"));
    }
}