1
0
mirror of https://github.com/beego/bee.git synced 2025-06-13 11:50:39 +00:00

print lastPushedTime & update readme.md

This commit is contained in:
wangle
2020-09-14 23:27:33 +08:00
parent 81ed06ea01
commit 7a7357a983
9 changed files with 230 additions and 110 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/beego/bee/cmd/commands"
"github.com/beego/bee/config"
beeLogger "github.com/beego/bee/logger"
"github.com/beego/bee/utils"
)
var CmdUpdate = &commands.Command{
@ -32,7 +33,9 @@ func updateBee(cmd *commands.Command, args []string) int {
cmdUp.Stdout = os.Stdout
cmdUp.Stderr = os.Stderr
if err := cmdUp.Run(); err != nil {
beeLogger.Log.Warnf("Run cmd err:%s",err)
beeLogger.Log.Warnf("Run cmd err:%s", err)
}
// update the pushedTime when updateBee every time
utils.UpdateLastPushedTime()
return 0
}