Skip to content

Commit

Permalink
show Scio version in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Mar 10, 2016
1 parent 45db00f commit 60d4fdd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions scio-repl/src/main/scala/com/spotify/scio/repl/ScioILoop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,18 @@ class ScioILoop(scioClassLoader: ScioReplClassLoader,
}

private def welcome(): Unit = {
val ascii = """Welcome to
| _____
| ________________(_)_____
| __ ___/ ___/_ /_ __ \
| _(__ )/ /__ _ / / /_/ /
| /____/ \___/ /_/ \____/""".stripMargin + " version " + com.spotify.scio.scioVersion + "\n"
echo(ascii)

val p = scala.util.Properties
val version = "Using Scala %s (%s, Java %s)".format(p.versionString, p.javaVmName, p.javaVersion)
echo(
"""Welcome to
| _____
| ________________(_)_____
| __ ___/ ___/_ /_ __ \
| _(__ )/ /__ _ / / /_/ /
| /____/ \___/ /_/ \____/
|""".stripMargin)
echo(version)
val scalaVersion = "Using Scala %s (%s, Java %s)".format(p.versionString, p.javaVmName, p.javaVersion)
echo(scalaVersion)

echo(
"""Type in expressions to have them evaluated.
|Type :help for more information.
Expand Down

0 comments on commit 60d4fdd

Please sign in to comment.