mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-28 04:46:52 -04:00
23 lines
377 B
Go
23 lines
377 B
Go
package main
|
|
|
|
import (
|
|
"github.com/rwinkhart/go-boilerplate/front"
|
|
)
|
|
|
|
func removals() {
|
|
for {
|
|
var doAll bool
|
|
choice := front.InputMenuGen("Application to remove:", []string{"back", "all", "linux-cachyos-lts"})
|
|
var target string
|
|
switch choice {
|
|
case 1:
|
|
return
|
|
case 2:
|
|
target = "linux-cachyos-lts"
|
|
}
|
|
if !doAll {
|
|
managePackage("-Rcns", target)
|
|
}
|
|
}
|
|
}
|