1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00

bee version support go version

This commit is contained in:
astaxie 2014-05-17 01:53:42 +08:00
parent f076f449df
commit 7f0e4f024c

View File

@ -2,6 +2,8 @@ package main
import (
"fmt"
"log"
"os/exec"
"github.com/astaxie/beego"
)
@ -23,6 +25,11 @@ func init() {
}
func versionCmd(cmd *Command, args []string) {
fmt.Println("bee:" + version)
fmt.Println("beego:" + beego.VERSION)
fmt.Println("bee :" + version)
fmt.Println("beego :" + beego.VERSION)
goversion, err := exec.Command("go", "version").Output()
if err != nil {
log.Fatal(err)
}
fmt.Println("Go :" + string(goversion))
}