jarvy 0.0.5

Jarvy is a fast, cross-platform CLI that installs and manages developer tools across macOS and Linux.
Documentation
//! dog - command-line DNS client
//!
//! Dog is a command-line DNS client, like dig. It has colorful output,
//! understands normal command-line argument syntax, supports the DNS-over-TLS
//! and DNS-over-HTTPS protocols, and can emit JSON.
//!
//! This tool uses the ToolSpec pattern for declarative installation.

use crate::define_tool;

define_tool!(DOG, {
    command: "dog",
    macos: { brew: "dog" },
    linux: { apt: "dog", dnf: "dog", pacman: "dog", apk: "dog" },
    bsd: { pkg: "dog" },
});

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

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