Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome message in REPL #253

Open
rexim opened this issue Oct 9, 2016 · 4 comments
Open

Welcome message in REPL #253

rexim opened this issue Oct 9, 2016 · 4 comments

Comments

@rexim
Copy link
Member

rexim commented Oct 9, 2016

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

@keddelzz
Copy link
Collaborator

keddelzz commented Oct 9, 2016

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
Copy link
Collaborator

keddelzz commented Feb 6, 2017

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
Copy link
Collaborator

keddelzz commented Feb 6, 2017

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

@rexim
Copy link
Member Author

rexim commented Feb 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants