Skip to content
Permalink
Browse files

fix output flickering before build output

minor thing, but the clearing there looked flickery since we have
custom output for the build
  • Loading branch information...
tj committed Dec 27, 2017
1 parent e8b2682 commit dbd816f8257d32bed237ce9080b3efc7619524a2
Showing with 4 additions and 3 deletions.
  1. +4 −3 reporter/text/text.go
@@ -114,13 +114,14 @@ func (r *reporter) Start() {
case "hook":
r.pending("hook", e.String("name"))
case "hook.complete":
r.clear()
name := e.String("name")
if name != "build" {
r.complete("hook", e.String("name"), e.Duration("duration"))
}
case "deploy", "stack.delete", "platform.stack.apply":
term.HideCursor()
case "deploy.complete", "stack.delete.complete", "platform.stack.apply.complete":
term.ShowCursor()
case "platform.build":
r.pending("build", "")
case "platform.build.zip":
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"))

0 comments on commit dbd816f

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