Skip to main content

run_pre_remove

Function run_pre_remove 

Source
pub fn run_pre_remove(
    runner: &dyn HookRunner,
    cx: &mut Cx,
    command: Option<&str>,
    ctx: &HookContext,
    no_hooks: bool,
    force: bool,
) -> Result<()>
Expand description

Runs the pre_remove hook (spec §8). A non-zero exit aborts the removal unless force is set, in which case it is reported as a warning and removal proceeds. no_hooks or an absent command is a no-op.