This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-108
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-108 by this push:
new 789db44 Update NCCli.scala
789db44 is described below
commit 789db444b06a302f1a97c38e4f99862a9aed897c
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sat Oct 3 01:31:15 2020 -0700
Update NCCli.scala
---
.../org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index f9fa6bd..5b246c9 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -824,7 +824,7 @@ object NCCli extends App {
private def mkServerBeaconTable(beacon: NCCliServerBeacon): NCAsciiTable =
{
val tbl = new NCAsciiTable
- tbl += (s"PID ${y("\u26a1")}", s"${g(beacon.pid)}")
+ tbl += ("PID", s"${g(beacon.pid)}")
tbl += ("JDBC URL", s"${g(beacon.jdbcUrl)}")
tbl += ("REST endpoint", s"${g(beacon.restEndpoint)}")
tbl += ("Uplink", s"${g(beacon.upLink)}")
@@ -944,16 +944,18 @@ object NCCli extends App {
var exit = false
- val pinger = U.mkThread("repl-server-pinger") { _ ⇒
- loadServerBeacon()
+ val pinger = U.mkThread("repl-server-pinger") { t ⇒
+ while (!t.isInterrupted) {
+ loadServerBeacon()
- Thread.sleep(10.secs)
+ Thread.sleep(10.secs)
+ }
}
pinger.start()
while (!exit) {
- val prompt = if (state.isServer) s"${y("\u26a1")}${g("\u25b6")} "
else s"${g("\u25b6")} "
+ val prompt = if (state.isServer)
s"${y("\uD83D\uDCBB")}${g("\u25b6")} " else s"${g("\u25b6")} "
val rawLine =
try