{Number:3,Name:"Install Package",Description:"Search and install a new package",Symbol:"\U0001F81B",AurRequired:false},
{Number:4,Name:"Remove Package + Deps",Description:"Remove an installed package and its (no longer used) dependencies",Symbol:"\U00002718",AurRequired:false},
{Number:5,Name:"Package Information",Description:"Search for a package (installed or not) and display information about it",Symbol:"\U00002139",AurRequired:false},
...
...
@@ -86,27 +86,27 @@ func mainMenu() {
switchindex{
case0:
updatePackages()
time.Sleep(1*time.Second)
case1:
fmt.Println("Starting system update...")
cleanPackages()
case2:
installPackage()
time.Sleep(1*time.Second)
case3:
removePackage()
time.Sleep(1*time.Second)
case4:
packageInfo()
case5:
packageFiles()
case6:
fmt.Println("Starting system update...")
dependencyTree(false)
case7:
fmt.Println("Starting system update...")
dependencyTree(true)
caselen(menuItems)-1:
fmt.Println(color.Purple(" o/ byebye.."))
return
}
time.Sleep(1*time.Second)
// wait for confirmation and return to mainMenu
execCommandInteractive("read -n 1 -s -r -p 'Press any key to return to menu...'")