Skip to main content

start_integrated_remove_all

Function start_integrated_remove_all 

Source
pub fn start_integrated_remove_all(
    app: &mut AppState,
    names: &[String],
    dry_run: bool,
    cascade_mode: CascadeMode,
)
Expand description

What: Start integrated remove process (bypassing preflight).

Inputs:

  • app: Mutable application state
  • names: Package names to remove
  • dry_run: Whether to run in dry-run mode
  • cascade_mode: Cascade removal mode

Output:

  • In interactive mode: Proceeds directly to PreflightExec without password modal.
  • Otherwise: Transitions to PasswordPrompt.

Details:

  • Remove operations always need privilege escalation.
  • In auth_mode = interactive, Pacsea performs terminal handoff auth and then starts execution without collecting a password in-app.
  • Outside interactive mode, remove keeps using the in-app password prompt.
  • Uses ExecutorRequest::Remove for execution.