Skip to content

Commit

Permalink
[prebuilds] Refactor 🍌
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed Apr 9, 2021
1 parent d114f03 commit 540d387
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/supervisor/pkg/supervisor/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,17 @@ func (tm *tasksManager) watch(task *task, terminal *terminal.Term) {
duration := ""
if elapsed >= 1*time.Minute {
elapsedInMinutes := strconv.Itoa(int(elapsed.Minutes()))
duration = "🎉 You just saved " + elapsedInMinutes + " minute"
duration = "🎉 Well done on saving " + elapsedInMinutes + " minute"
if elapsedInMinutes != "1" {
duration += "s"
}
duration += " of watching your code build.\n"
duration += "\n"
}
data := string(buf[:n])
fileWriter.Write(buf[:n])
tm.reporter.write(data, task, terminal)

endMessage := "\n🍌 This task ran as part of a workspace prebuild.\n" + duration + "\n"
endMessage := "\n🤙 This task ran as a workspace prebuild\n" + duration + "\n"
fileWriter.WriteString(endMessage)
break
}
Expand Down

0 comments on commit 540d387

Please sign in to comment.