Skip to main content

plan_execution

Function plan_execution 

Source
pub fn plan_execution(
    schema: &Schema,
    project: &ProjectView,
    doc: &PlanDocument,
    options: &ExecuteOptions,
    context: Option<&ContextConfig>,
) -> Result<ExecutionPreview, ExecutionError>
Expand description

Compute the exact set of file changes that executing doc would produce, without touching the filesystem.

The caller supplies a ProjectView — an in-memory snapshot of the project. This lets tests drive the whole pipeline without a tempdir, and lets the CLI do the dry-run + preview before asking the operator to confirm.