Skip to main content

guard_command

Function guard_command 

Source
pub fn guard_command(line: &str) -> Result<String>
Expand description

The seat’s verdict on one shell command. An empty line is an error. A deny or an ask is an error too: the command stays unrun.

§Errors

The command is empty, or the rules refuse it.