mirror of https://github.com/sbt/sbt.git
Instruct how to get into interactive mode directly
This commit is contained in:
parent
f5d7c384a4
commit
7b4a349d5b
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue