Merge pull request #592 from Morganamilo/version

Show alpm version with -V
This commit is contained in:
Anna 2018-07-28 03:48:08 +01:00 committed by GitHub
commit d9aa50b1f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
cmd.go
View File

@ -5,6 +5,8 @@ import (
"fmt"
"os"
"strconv"
alpm "github.com/jguer/go-alpm"
)
var cmdArgs = makeArguments()
@ -349,7 +351,7 @@ func handleConfig(option, value string) bool {
}
func handleVersion() {
fmt.Printf("yay v%s\n", version)
fmt.Printf("yay v%s - libalpm v%s\n", version, alpm.Version())
}
func handlePrint() (err error) {