This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-194
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-194 by this push:
new 5e458a2 Update NCCli.scala
5e458a2 is described below
commit 5e458a2283570957d4aa9470158aafb0eb51587d
Author: Aaron Radzinski <[email protected]>
AuthorDate: Wed Dec 16 21:00:40 2020 -0800
Update NCCli.scala
---
.../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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 30fbc41..71e5c7e 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
@@ -510,7 +510,7 @@ object NCCli extends App {
if (state.accessToken.isDefined) {
val tbl = new NCAsciiTable()
- tbl += (s"${g("Email")}", DFLT_USER_EMAIL)
+ tbl += (s"${g("Email")}", state.userEmail.get)
tbl += (s"${g("Access token")}", state.accessToken.get)
logln(s"Signed in with default user:\n$tbl")
@@ -1467,6 +1467,15 @@ object NCCli extends App {
state.probes.foreach(addProbeToTable(tbl, _))
logln(s"Connected probes (${state.probes.size}):\n${tbl.toString}")
+
+ if (state.accessToken.isDefined) {
+ val tbl = new NCAsciiTable()
+
+ tbl += (s"${g("Email")}", state.userEmail.get)
+ tbl += (s"${g("Access token")}", state.accessToken.get)
+
+ logln(s"Signed in user account:\n$tbl")
+ }
}
/**