Skip to main content

execute

Function execute 

Source
pub async fn execute(
    tokens: &[String],
    opts: &ExecOptions,
) -> Result<ExecOutcome, ExecError>
Expand description

Execute the given tokens. The first token is the program; the rest are passed as discrete arguments — no shell is invoked, which is why the metacharacter rejection in crate::safety is a hard prerequisite.