mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-28 04:46:52 -04:00
28 lines
464 B
Go
28 lines
464 B
Go
package main
|
|
|
|
import (
|
|
"github.com/rwinkhart/go-boilerplate/front"
|
|
)
|
|
|
|
func removals() {
|
|
for {
|
|
var choice int
|
|
if performAllTweaks {
|
|
choice = 2
|
|
} else {
|
|
choice = front.InputMenuGen("Application to remove:", []string{"BACK", "linux-cachyos-lts"})
|
|
}
|
|
var targets []string
|
|
switch choice {
|
|
case 1:
|
|
return
|
|
case 2:
|
|
targets = append(targets, "linux-cachyos-lts")
|
|
}
|
|
managePackages("-Rcns", targets)
|
|
if performAllTweaks {
|
|
break
|
|
}
|
|
}
|
|
}
|