mirror of
https://github.com/beego/bee.git
synced 2024-11-24 23:30:55 +00:00
bee version support go version
This commit is contained in:
parent
f076f449df
commit
7f0e4f024c
@ -2,6 +2,8 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os/exec"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
@ -25,4 +27,9 @@ func init() {
|
||||
func versionCmd(cmd *Command, args []string) {
|
||||
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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user