Skip to main content

apply_delegate_update

Function apply_delegate_update 

Source
pub async fn apply_delegate_update(
    plan: &UpdatePlan,
    options: Option<DelegateApplyOptions>,
) -> ApplyResult
Expand description

Apply an update by delegating to a package manager command.

In PrintOnly mode (default), returns ApplyResult::NeedsRestart with the command string. In Execute mode, validates the command against a safelist, runs it, and returns success or failure based on exit code.