jarvy 0.0.5

Jarvy is a fast, cross-platform CLI that installs and manages developer tools across macOS and Linux.
Documentation
//! tree - directory listing in tree format
//!
//! This tool uses the ToolSpec pattern for declarative installation.
//! Note: On Windows, tree is built-in, so we don't need to install it.

use crate::define_tool;

define_tool!(TREE, {
    command: "tree",
    macos: { brew: "tree" },
    linux: { uniform: "tree" },
    // Windows has built-in tree.exe, no package needed
    bsd: { pkg: "tree" },
});

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

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