Skip to main content

exec_argv_impl

Function exec_argv_impl 

Source
pub fn exec_argv_impl(
    lua: &Lua,
    program: &str,
    args: &Table,
    opts: Option<&Table>,
    default_cwd: &Path,
) -> Result<Table, Error>
Expand description

Builds and executes a Command from program + args + opts.

Shared implementation used by both child.rs and ctx_fns.rs after capability/permission checks have passed.

ยงArguments

  • program - Executable name or path
  • args - Lua table (array) of string arguments
  • opts - Optional Lua table: { env_remove = {"VAR1", ...}, cwd = "path" }
  • default_cwd - Fallback working directory (sandbox root)