mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-06 09:07:18 -04:00
Add option to perform all tweaks
This commit is contained in:
+11
-6
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user