bee version support go version

This commit is contained in:
astaxie 2014-05-17 01:53:42 +08:00
parent f076f449df
commit 7f0e4f024c
1 changed files with 9 additions and 2 deletions

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