feat: Improved package diff printing

This commit is contained in:
2026-04-15 17:15:21 +02:00
parent 5734c0d524
commit b8e2d68469
4 changed files with 65 additions and 19 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def remove_orphans() -> bool:
Returns:
True if successful, False otherwise
"""
return sp.run("pacman -Qdtq | pacman -Rnsy -", capture_output=True).returncode == 0
return sp.run("pacman -Qdtq | sudo pacman -Rns --noconfirm -", capture_output=True).returncode == 0
def uninstall_package_list(pkgs: List[str]) -> bool:
+2 -2
View File
@@ -13,8 +13,8 @@ def print_list(list: List[Any]):
" "
+ cl.Fore.BLUE
+ cl.Style.DIM
+ (" " * (digit_count - count_digits(i)))
+ str(i)
+ (" " * (digit_count - count_digits(i + 1)))
+ str(1 + i)
+ cl.Style.RESET_ALL + " ",
pkg,
)