Skip to content
Permalink
Browse files

add deploy stage to the output

improves UX slightly
  • Loading branch information...
tj committed Dec 4, 2018
1 parent b155ed0 commit 5326578f7fb45cfd3a3a404d71a6a9a9b7c1fcd8
Showing with 4 additions and 4 deletions.
  1. +4 −4 reporter/text/text.go
@@ -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"))))
r.complete("build", s, e.Duration("duration"))
case "platform.deploy":
r.pending("deploy", "")
r.pending("deploy", e.String("stage"))
case "platform.deploy.complete":
s := "complete"
s := e.String("stage")
if v := e.String("commit"); v != "" {
s = "commit " + v
s += " (commit " + v + ")"
} else if v := e.String("version"); v != "" {
s = "version " + v
s += " (version " + v + ")"
}
r.complete("deploy", s, e.Duration("duration"))
case "platform.function.create":

0 comments on commit 5326578

Please sign in to comment.
You can’t perform that action at this time.