1
0
mirror of https://github.com/beego/bee.git synced 2025-06-13 06:40:39 +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

@ -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":