Skip to main content

run

Function run 

Source
pub async fn run(
    profile: &Profile,
    opts: RunOptions,
) -> Result<RunResult, RunnerError>
Expand description

Run a profile for one turn. Resolves the four-case executor rule:

  1. executor + known → in-process, ignore command/args
  2. executor + unknown → warn stderr, spawn command (fallback)
  3. executor + unknown + no command → hard fail
  4. no executor → spawn command