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)
|
val loggedState = state.copy(globalLogging = newLogging)
|
||||||
def isInteractive = System.console() != null
|
def isInteractive = System.console() != null
|
||||||
def hasShell = state.remainingCommands contains "shell"
|
def hasShell = state.remainingCommands contains "shell"
|
||||||
if (isInteractive && !hasShell)
|
if (isInteractive && !hasShell) {
|
||||||
state.log warn "Executing in batch mode; for better performance, hit [ENTER] to remain in the sbt shell"
|
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()
|
try run(loggedState) finally out.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue