use crate::define_tool;
define_tool!(EARTHLY, {
command: "earthly",
macos: { brew: "earthly/earthly/earthly" },
linux: { uniform: "earthly" },
windows: { winget: "Earthly.Earthly" },
bsd: { pkg: "earthly" },
depends_on_one_of: &["docker", "podman"],
});
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn earthly_registration_shape() {
assert_eq!(EARTHLY.command, "earthly");
let mac = EARTHLY.macos.expect("must support macOS");
assert_eq!(mac.brew, Some("earthly/earthly/earthly"));
let win = EARTHLY.windows.expect("must support Windows");
assert_eq!(win.winget, Some("Earthly.Earthly"));
}
}