mirror of https://github.com/sbt/sbt.git
Merge pull request #5765 from eed3si9n/wip/progress
Banner for 1.4.0 beta
This commit is contained in:
commit
9d60267de2
|
|
@ -15,7 +15,8 @@ import sbt.internal.util.ConsoleAppender.{
|
|||
ClearScreenAfterCursor,
|
||||
CursorLeft1000,
|
||||
DeleteLine,
|
||||
cursorUp
|
||||
cursorUp,
|
||||
setShowProgress,
|
||||
}
|
||||
|
||||
import scala.collection.mutable.ArrayBuffer
|
||||
|
|
@ -160,6 +161,7 @@ private[sbt] object ProgressState {
|
|||
val isWatch = terminal.prompt == Prompt.Watch
|
||||
val noPrompt = terminal.prompt == Prompt.NoPrompt
|
||||
if (terminal.isSupershellEnabled) {
|
||||
setShowProgress(true) // used by Zinc to not show "done compiling"
|
||||
if (!pe.skipIfActive.getOrElse(false) || (!isRunning && !isBatch)) {
|
||||
terminal.withPrintStream { ps =>
|
||||
val commandFromThisTerminal = pe.channelName.fold(true)(_ == terminal.name)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,16 @@ package sbt.internal
|
|||
private[sbt] object Banner {
|
||||
def apply(version: String): Option[String] =
|
||||
version match {
|
||||
case v if v.startsWith("1.4.0") =>
|
||||
Some(s"""
|
||||
|Here are some highlights of this release:
|
||||
| - Build server protocol (BSP) support
|
||||
| - sbtn: a native thin client for sbt
|
||||
| - VirtualFile + RemoteCache: caches build artifacts across different machines
|
||||
| - Incremental build pipelining. Try it using `ThisBuild / usePipelining := true`.
|
||||
|See http://eed3si9n.com/sbt-1.4.0-beta for full release notes.
|
||||
|Hide the banner for this release by running `skipBanner`.
|
||||
|""".stripMargin.linesIterator.mkString("\n"))
|
||||
case "1.3.0" =>
|
||||
Some(s"""
|
||||
|Welcome to sbt $version.
|
||||
|
|
|
|||
Loading…
Reference in New Issue