use crate::define_tool;
define_tool!(WATCHEXEC, {
command: "watchexec",
macos: { brew: "watchexec" },
linux: { apt: "watchexec", dnf: "watchexec", pacman: "watchexec", apk: "watchexec" },
windows: { winget: "watchexec.watchexec", choco: "watchexec" },
bsd: { pkg: "watchexec" },
});
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn watchexec_registration_shape() {
assert_eq!(WATCHEXEC.command, "watchexec");
let mac = WATCHEXEC.macos.expect("must support macOS");
assert_eq!(mac.brew, Some("watchexec"));
let win = WATCHEXEC.windows.expect("must support Windows");
assert_eq!(win.winget, Some("watchexec.watchexec"));
}
}