jarvy 0.5.0

Jarvy is a fast, cross-platform CLI that installs and manages developer tools across macOS and Linux.
//! kubescape - Kubernetes security scanner
//!
//! This tool uses the ToolSpec pattern for declarative installation.

use crate::define_tool;

define_tool!(KUBESCAPE, {
    command: "kubescape",
    macos: { brew: "kubescape" },
    linux: { uniform: "kubescape" },
    windows: { winget: "kubescape.kubescape" },
    bsd: { pkg: "kubescape" },
    depends_on: &["kubectl"],
});

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

    #[test]
    fn kubescape_registration_shape() {
        assert_eq!(KUBESCAPE.command, "kubescape");
        let mac = KUBESCAPE.macos.expect("must support macOS");
        assert_eq!(mac.brew, Some("kubescape"));
        let win = KUBESCAPE.windows.expect("must support Windows");
        assert_eq!(win.winget, Some("kubescape.kubescape"));
    }
}