Instruct how to get into interactive mode directly

This commit is contained in:
Dale Wijnand 2017-03-07 13:30:56 +00:00 committed by Eugene Yokota
parent f5d7c384a4
commit 7b4a349d5b
1 changed files with 4 additions and 2 deletions

View File

@ -74,8 +74,10 @@ object MainLoop {
val loggedState = state.copy(globalLogging = newLogging)
def isInteractive = System.console() != null
def hasShell = state.remainingCommands contains "shell"
if (isInteractive && !hasShell)
state.log warn "Executing in batch mode; for better performance, hit [ENTER] to remain in the sbt shell"
if (isInteractive && !hasShell) {
state.log warn "BATCH MODE: for better performance hit [ENTER] to switch to interactive mode"
state.log warn " consider launching sbt without any commands, or explicitly passing 'shell'"
}
try run(loggedState) finally out.close()
}