Add option to perform all tweaks

This commit is contained in:
2025-10-12 15:12:03 -04:00
parent 7450de89ae
commit 28a8b46af1
5 changed files with 83 additions and 23 deletions
+11 -6
View File
@@ -7,17 +7,22 @@ import (
// TODO remove unneeded linux-firmware packages!
func removals() {
for {
var doAll bool
choice := front.InputMenuGen("Application to remove:", []string{"BACK", "linux-cachyos-lts"})
var target string
var choice int
if performAllTweaks {
choice = 1
} else {
choice = front.InputMenuGen("Application to remove:", []string{"BACK", "linux-cachyos-lts"})
}
var targets []string
switch choice {
case 1:
return
case 2:
target = "linux-cachyos-lts"
targets = append(targets, "linux-cachyos-lts")
}
if !doAll {
managePackages("-Rcns", []string{target})
managePackages("-Rcns", targets)
if performAllTweaks {
break
}
}
}