Show project version in 'about'

This commit is contained in:
Mark Harrah 2013-06-19 19:18:40 -04:00
parent 7796715e88
commit 6091e60611
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ object BuiltinCommands
if(Project.isProjectLoaded(s))
{
val e = Project.extract(s)
val current = "The current project is " + Reference.display(e.currentRef) + "\n"
val version = e.getOpt(Keys.version) match { case None => ""; case Some(v) => " " + v }
val current = "The current project is " + Reference.display(e.currentRef) + version + "\n"
val sc = aboutScala(s, e)
val built = if(sc.isEmpty) "" else "The current project is built against " + sc + "\n"
current + built + aboutPlugins(e)