use crate::define_tool;
define_tool!(EMQX, {
command: "emqx",
macos: { brew: "emqx" },
linux: { uniform: "emqx" },
category: "messaging",
});
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn emqx_registration_shape() {
assert_eq!(EMQX.command, "emqx");
assert_eq!(EMQX.category, Some("messaging"));
let mac = EMQX.macos.expect("emqx must support macOS");
assert_eq!(mac.brew, Some("emqx"));
let linux = EMQX.linux.expect("emqx must support Linux");
assert_eq!(linux.apt, Some("emqx"));
assert!(EMQX.windows.is_none(), "no first-party winget manifest");
}
}