Pass yay -Sl to pacman

This commit is contained in:
morganamilo 2018-03-11 23:34:09 +00:00
parent 38e4e6bdc1
commit 2bd4cdc590
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

3
cmd.go
View file

@ -490,6 +490,7 @@ func handleSync() (err error) {
arguments.delArg("u", "sysupgrade")
arguments.delArg("s", "search")
arguments.delArg("i", "info")
arguments.delArg("l", "list")
arguments.targets = make(stringSet)
err = passToPacman(arguments)
if err != nil {
@ -505,6 +506,8 @@ func handleSync() (err error) {
}
err = syncSearch(targets)
} else if cmdArgs.existsArg("l", "list") {
err = passToPacman(cmdArgs)
} else if cmdArgs.existsArg("c", "clean") {
err = passToPacman(cmdArgs)
} else if cmdArgs.existsArg("i", "info") {