You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/01/04 21:49:13 UTC

[incubator-nlpcraft-website] 01/02: WIP.

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

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

commit 6490a79ba340564d52fd42caab9b934a5fe5ddf5
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Mon Jan 4 13:46:52 2021 -0800

    WIP.
---
 images/cli9.png   | Bin 0 -> 17281 bytes
 tools/script.html |  20 +++++++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/images/cli9.png b/images/cli9.png
new file mode 100644
index 0000000..f64a23d
Binary files /dev/null and b/images/cli9.png differ
diff --git a/tools/script.html b/tools/script.html
index 3f9f2bf..2f8f233 100644
--- a/tools/script.html
+++ b/tools/script.html
@@ -129,10 +129,10 @@ id: script
             Runs <code>git pull</code> command in the current directory.
         </p>
         <pre class="brush: plain">
-            > $mvn clean package
+            > $ls -la
         </pre>
         <p style="margin-left: 20px">
-            Runs Maven build in the current directory.
+            Runs <code>ls -la</code> Unix shell command.
         </p>
         <pre class="brush: plain">
             > $cmd /c dir
@@ -172,12 +172,22 @@ id: script
         </p>
         <h2 class="section-sub-title">Using <code>bin/nlpcraft.{sh|cmd}</code> In Scripts</h2>
         <p>
-            All of the commands that utilize REST API produce JSON responses. You can easily parse these JSON responses
-            for your own needs in your scripts. For example, here's the code to get the access token from the <code>signin</code>
-            command (on Linux):
+            All of the commands that utilize REST API produce JSON responses:
+        </p>
+        <p>
+            <img class="non-fluid-img" src="/images/cli9.png" alt="">
+        </p>
+        <p>
+            You can easily parse these JSON responses for your own needs in your scripts. For example, here's the
+            code snippet to get the access token from the <code>signin</code> command (on Linux):
         </p>
         <pre class="brush: bash">
             $ bin/nlpcraft.sh no-ansi no-logo signin --email=admin@admin.com --passwd=admin | tail -n +2 | jq -M '.acsTok' | tr -d '"'
+        </pre>
+        <p>
+        ... and the result access token is:
+        </p>
+        <pre class="brush: bash">
             kkoXBAn8yruEzXrj8Kja5
         </pre>
         <p>