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

change updatedTime to publishedTime

This commit is contained in:
wangle
2020-09-15 00:05:38 +08:00
parent 7a7357a983
commit 674b52a732
4 changed files with 46 additions and 19 deletions

View File

@ -35,7 +35,7 @@ func updateBee(cmd *commands.Command, args []string) int {
if err := cmdUp.Run(); err != nil {
beeLogger.Log.Warnf("Run cmd err:%s", err)
}
// update the pushedTime when updateBee every time
utils.UpdateLastPushedTime()
// update the Time when updateBee every time
utils.UpdateLastPublishedTime()
return 0
}

View File

@ -24,7 +24,7 @@ type RuntimeInfo struct {
Compiler string
BeeVersion string
BeegoVersion string
UpdatedAt string
Published string
}
// InitBanner loads the banner and prints it to output
@ -62,7 +62,7 @@ func show(out io.Writer, content string) {
runtime.Compiler,
version,
GetBeegoVersion(),
utils.GetLastPushedTime(),
utils.GetLastPublishedTime(),
})
if err != nil {
beeLogger.Log.Error(err.Error())

View File

@ -38,7 +38,7 @@ const verboseVersionBanner string = `%s%s______
├── GOPATH : {{ .GOPATH }}
├── GOROOT : {{ .GOROOT }}
├── Compiler : {{ .Compiler }}
└── UpdatedAt : {{ .UpdatedAt }}%s
└── Published : {{ .Published }}%s
`
const shortVersionBanner = `______
@ -84,7 +84,7 @@ func versionCmd(cmd *commands.Command, args []string) int {
runtime.Compiler,
version,
GetBeegoVersion(),
utils.GetLastPushedTime(),
utils.GetLastPublishedTime(),
}
switch outputFormat {
case "json":