Notify users at info level & in 1 line

Refs #3091
This commit is contained in:
Dale Wijnand 2017-04-27 13:25:07 +01:00
parent 2ee0b3c064
commit a6af8c50c8
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 2 additions and 5 deletions

View File

@ -577,11 +577,8 @@ object BuiltinCommands {
(state.remainingCommands.lastOption exists (_ == s"$IfLast $Shell"))
private def notifyUsersAboutShell(state: State) =
if (isInteractive && !intendsToInvokeShell(state) && !intendsToInvokeNew(state)) {
state.log warn "Executing in batch mode."
state.log warn " For better performance, hit [ENTER] to switch to interactive mode, or"
state.log warn " consider launching sbt without any commands, or explicitly passing 'shell'"
}
if (isInteractive && !intendsToInvokeShell(state) && !intendsToInvokeNew(state))
state.log info "Executing in batch mode. For better performance use sbt's shell; hit [ENTER] to do so now"
private def NotifyUsersAboutShell = "notify-users-about-shell"