pub type OsExecuteHook = fn(cmd: &[u8]) -> Result<OsExecuteResult, LuaError>;Expand description
Function-pointer signature for executing a shell command, installed on
GlobalState::os_execute_hook by the embedder.
std::process is banned outside lua-cli, so lua-stdlib’s os.execute
reaches the shell via this hook. Returns an OsExecuteResult on success,
or a LuaError when the spawn itself fails.