use crate::define_tool;
define_tool!(GITVERSION, {
command: "gitversion",
macos: { brew: "gitversion" },
linux: { uniform: "gitversion" },
windows: { winget: "GitTools.GitVersion" },
depends_on: &["git"],
});
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn gitversion_registration_shape() {
assert_eq!(GITVERSION.command, "gitversion");
let mac = GITVERSION.macos.expect("gitversion must support macOS");
assert_eq!(mac.brew, Some("gitversion"));
let win = GITVERSION.windows.expect("gitversion must support Windows");
assert_eq!(win.winget, Some("GitTools.GitVersion"));
}
}