pub fn gated_name(cmd: &str) -> StringExpand description
The program name the gates check for a command: its file-name component,
so ls, /bin/ls, and ./ls all gate on ls.
ยงExamples
use coding_tools::allowlist::gated_name;
assert_eq!(gated_name("/bin/ls"), "ls");
assert_eq!(gated_name("./parse"), "parse");