Skip to main content

command

Function command 

Source
pub fn command(
    program: &str,
    cap: &impl CapProvider<Spawn>,
) -> Result<Command, CapSecError>
Expand description

Creates a new Command for the given program. Requires Spawn permission.

Returns a std::process::Command that can be further configured before execution.