Skip to main content

run

Function run 

Source
pub fn run(
    command: &'static Command,
    context: &mut Context,
    arguments: &Arguments,
) -> Result<Outcome, Failed>
Expand description

Runs a command, applying the checks every front end shares.

The order is the whole of it: the database is selected first because a confinement refusal must happen before anything is opened, the read-only check is second because a refusal is cheaper than a run, and only then does the command see its arguments.

@param command - what to run @param context - where to run it @param arguments - what it was given