1
0
mirror of https://github.com/beego/bee.git synced 2025-07-04 16:40:19 +00:00

生成文档功能更新

This commit is contained in:
heldiam
2018-02-26 16:47:19 +08:00
parent e90da8f77b
commit b865f25947
2 changed files with 84 additions and 22 deletions

View File

@ -131,6 +131,8 @@ func AutoBuild(files []string, isgenerate bool) {
beeLogger.Log.Info("Generating the docs...")
icmd := exec.Command("bee", "generate", "docs")
icmd.Env = append(os.Environ(), "GOGC=off")
icmd.Stdout = os.Stdout
icmd.Stderr = os.Stderr
err = icmd.Run()
if err != nil {
utils.Notify("", "Failed to generate the docs.")