start_integrated_install_all

Function start_integrated_install_all 

Source
pub fn start_integrated_install_all(
    app: &mut AppState,
    items: &[PackageItem],
    dry_run: bool,
)
Expand description

What: Start integrated install process for multiple packages (bypassing preflight).

Inputs:

  • app: Mutable application state
  • items: Packages to install
  • dry_run: Whether to run in dry-run mode

Output:

  • If passwordless sudo is available: Proceeds directly to PreflightExec modal.
  • If passwordless sudo is not available: Transitions to PasswordPrompt modal.

Details:

  • Checks for passwordless sudo first to skip password prompt if available.
  • Both official packages (sudo pacman) and AUR packages (paru/yay need sudo for final step) require sudo, but password may not be needed if passwordless sudo is configured.
  • Uses ExecutorRequest::Install for execution.