safe-chains 0.194.0

Auto-allow safe bash commands in agentic coding tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// gh and glab dispatch through the TOML registry (handler = "gh" /
// handler = "glab" in their TOMLs). `forges::gh::is_safe_gh_api` is
// still needed at this module path for the custom_sub_handlers map
// and for glab's `api` sub delegation.
pub(crate) mod gh;
pub(crate) mod glab;

#[cfg(test)]
pub(super) fn full_registry() -> Vec<&'static super::CommandEntry> {
    let mut v = Vec::new();
    v.extend(gh::REGISTRY);
    v.extend(glab::REGISTRY);
    v
}