Add go version to version command
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-06-25 15:59:06 +02:00
parent 922c41236c
commit 0add1dce01
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

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())
},
}