This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch NLPCRAFT-170
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-170 by this push:
     new e30436a  Update NCCli.scala
e30436a is described below

commit e30436af6baf44100e40f401f7d600b86b133886
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sat Dec 12 14:09:32 2020 -0800

    Update NCCli.scala
---
 .../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala  | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 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 8db3412..eb4d1c5 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
@@ -1828,8 +1828,14 @@ object NCCli extends App {
 
                     showTip()
 
-                    if (state.accessToken.isDefined)
-                        logln(s"Signed in with default 
'${c("[email protected]")}' user.")
+                    if (state.accessToken.isDefined) {
+                        val tbl = new NCAsciiTable()
+
+                        tbl += (s"${g("Email")}", "[email protected]")
+                        tbl += (s"${g("Access token")}", state.accessToken.get)
+
+                        logln(s"Signed in with default user:\n$tbl")
+                    }
                 }
             }
         }

Reply via email to