Add go version to version command

This commit is contained in:
kolaente 2020-06-25 15:59:06 +02:00
parent 922c41236c
commit 0add1dce01
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -20,6 +20,7 @@ import (
"code.vikunja.io/api/pkg/version"
"fmt"
"github.com/spf13/cobra"
"runtime"
)
func init() {
@ -31,5 +32,6 @@ var versionCmd = &cobra.Command{
Short: "Print the version number of Vikunja",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Vikunja api version %s\n", version.Version)
fmt.Printf("Built with %s\n", runtime.Version())
},
}