Skip to content

Commit

Permalink
add deploy stage to the output
Browse files Browse the repository at this point in the history
improves UX slightly
  • Loading branch information
tj committed Dec 4, 2018
1 parent b155ed0 commit 5326578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reporter/text/text.go
Expand Up @@ -128,13 +128,13 @@ func (r *reporter) Start() {
s := fmt.Sprintf("%s files, %s", humanize.Comma(e.Int64("files")), humanize.Bytes(uint64(e.Int("size_compressed")))) s := fmt.Sprintf("%s files, %s", humanize.Comma(e.Int64("files")), humanize.Bytes(uint64(e.Int("size_compressed"))))
r.complete("build", s, e.Duration("duration")) r.complete("build", s, e.Duration("duration"))
case "platform.deploy": case "platform.deploy":
r.pending("deploy", "") r.pending("deploy", e.String("stage"))
case "platform.deploy.complete": case "platform.deploy.complete":
s := "complete" s := e.String("stage")
if v := e.String("commit"); v != "" { if v := e.String("commit"); v != "" {
s = "commit " + v s += " (commit " + v + ")"
} else if v := e.String("version"); v != "" { } else if v := e.String("version"); v != "" {
s = "version " + v s += " (version " + v + ")"
} }
r.complete("deploy", s, e.Duration("duration")) r.complete("deploy", s, e.Duration("duration"))
case "platform.function.create": case "platform.function.create":
Expand Down

0 comments on commit 5326578

Please sign in to comment.