Skip to main content

allow_programs

Function allow_programs 

Source
pub fn allow_programs(programs: &[String]) -> Result<Vec<String>, String>
Expand description

Adds programs to the global shell_allowlist_extra, as lean-ctx allow does, without printing. Returns the entries that were new. Used when the user answers an approval prompt with “always allow”.