spawn_remove_all

Function spawn_remove_all 

Source
pub fn spawn_remove_all(
    names: &[String],
    dry_run: bool,
    cascade_mode: CascadeMode,
)
Expand description

What: Spawn a terminal to remove all given packages with pacman.

Input:

  • names slice of package names; dry_run prints the removal command instead of executing

Output:

  • Launches a terminal (or bash) to run sudo pacman -Rns for the provided names.

Details:

  • Prefers common terminals (GNOME Console/Terminal, kitty, alacritty, xterm, xfce4-terminal, etc.); falls back to bash. Appends a hold tail so the window remains open after command completion.
  • During tests, this is a no-op to avoid opening real terminal windows.