Add go version to version command
This commit is contained in:
parent
922c41236c
commit
0add1dce01
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ import (
|
||||||
"code.vikunja.io/api/pkg/version"
|
"code.vikunja.io/api/pkg/version"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -31,5 +32,6 @@ var versionCmd = &cobra.Command{
|
||||||
Short: "Print the version number of Vikunja",
|
Short: "Print the version number of Vikunja",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Printf("Vikunja api version %s\n", version.Version)
|
fmt.Printf("Vikunja api version %s\n", version.Version)
|
||||||
|
fmt.Printf("Built with %s\n", runtime.Version())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue