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:
parent
f076f449df
commit
7f0e4f024c
11
version.go
11
version.go
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user