morganey-lang / Morganey

Lambda Calculus based, interpreted programming language that recognizes Church encoded structures.
43 stars 4 forks source link

Welcome message in REPL #253

Open rexim opened 8 years ago

rexim commented 8 years ago

REPL should print a standard splash with Welcome message and version of Morganey.

keddelzz commented 8 years ago

For a idea how the message could be, here's the welcome message of scala's repl.

Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.

See also the position of this message in the scala sources.

keddelzz commented 7 years ago

To print some welcome message like Welcome to Morganey REPL (<version>) we need the current version of Morganey.

One way to achieve this is with the sbt plugin sbt-buildinfo. Using it you can generate sources (containing version numbers) from the sbt build definition.


There are of course multiple ways to implement this, but I just scrolled through the issues and remembered sbt-buildinfo, so i wanted to leave a note.

keddelzz commented 7 years ago

I just saw, that we're already using sbt-buildinfo (see here and here).

rexim commented 7 years ago

Right, we use it to properly compose a name of the fatjar to run it for Funtional Testing, if I remember correctly.