You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/01/29 13:43:45 UTC

(nuttx) branch master updated (0f169f50c4 -> 149d648129)

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

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from 0f169f50c4 risc-v/k230: add big core support
     new 0a23fe3bd6 Documentation: add `-h` option description for ls command
     new 6e4c72f7bf Documentation: add `uptime` command description
     new 60fa280715 Documentation: add `expr` command description
     new 149d648129 Documentation: add `-u` and `+%format` description for date command

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Documentation/applications/nsh/commands.rst | 58 +++++++++++++++++++++++++++--
 1 file changed, 54 insertions(+), 4 deletions(-)


(nuttx) 02/04: Documentation: add `uptime` command description

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6e4c72f7bf6c10052e0f9d670184a5448ee4ab98
Author: Junbo Zheng <zh...@xiaomi.com>
AuthorDate: Mon Jan 29 19:20:26 2024 +0800

    Documentation: add `uptime` command description
    
    Reference: https://github.com/apache/nuttx-apps/pull/1319
    
    Signed-off-by: Junbo Zheng <zh...@xiaomi.com>
---
 Documentation/applications/nsh/commands.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/applications/nsh/commands.rst b/Documentation/applications/nsh/commands.rst
index 7c2a3b0cef..1f97661bd6 100644
--- a/Documentation/applications/nsh/commands.rst
+++ b/Documentation/applications/nsh/commands.rst
@@ -1757,6 +1757,27 @@ and the group-wide environment variables. For example::
 
   nsh>
 
+.. _cmduptime:
+
+``uptime`` Show how long the system has been running
+====================================================
+
+**Command Syntax**:
+
+  uptime [-sph]
+
+**Synopsis**. Display of the following information: the current time,
+how long the system has been running, and the load averages for the past 1, 5,
+and 15 minutes.
+
+**Options**
+
+======  ================================
+``-p`` 	show uptime in pretty format
+``-s`` 	system up since
+``-h`` 	display this help and exit
+======  ================================
+
 .. _cmdurldecode:
 
 ``urldecode`` URL Decode


(nuttx) 03/04: Documentation: add `expr` command description

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 60fa280715c15c67216a432ef5d81539f7527b69
Author: Junbo Zheng <zh...@xiaomi.com>
AuthorDate: Mon Jan 29 19:32:58 2024 +0800

    Documentation: add `expr` command description
    
    Reference: https://github.com/apache/nuttx-apps/pull/2268
    
    Signed-off-by: Junbo Zheng <zh...@xiaomi.com>
---
 Documentation/applications/nsh/commands.rst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/Documentation/applications/nsh/commands.rst b/Documentation/applications/nsh/commands.rst
index 1f97661bd6..834daf8e8f 100644
--- a/Documentation/applications/nsh/commands.rst
+++ b/Documentation/applications/nsh/commands.rst
@@ -503,6 +503,34 @@ examples:
 The ``export`` command is not supported by NSH unless both
 ``CONFIG_NSH_VARS=y`` and ``CONFIG_DISABLE_ENVIRON``\ is not set.
 
+.. _cmdexpr:
+
+``expr`` Evaluate expressions
+=============================
+
+**Command Syntax**::
+
+  expr <operand1> <operator> <operand2>
+
+**Synopsis**. It is a mini version for the expr command, which implements the
+features of addition, subtraction, multiplication, division and mod.
+
+**Examples**:
+
+  nsh> expr 5 - 2
+  3
+  nsh> set hello 10
+  nsh> expr $hello - 2
+  8
+  nsh> expr 8 a 9
+  Unknown operator
+  nsh> expr 20 / 5
+  4
+  nsh> expr 10 % 4
+  2
+  nsh> expr 100 + 0
+  100
+
 .. _cmdfree:
 
 ``free`` Show Memory Manager Status


(nuttx) 01/04: Documentation: add `-h` option description for ls command

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 0a23fe3bd691a9edff9a7877447137d5ce855675
Author: Junbo Zheng <zh...@xiaomi.com>
AuthorDate: Mon Jan 29 19:00:04 2024 +0800

    Documentation: add `-h` option description for ls command
    
    Reference: https://github.com/apache/nuttx-apps/pull/1821
    
    Signed-off-by: Junbo Zheng <zh...@xiaomi.com>
---
 Documentation/applications/nsh/commands.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/applications/nsh/commands.rst b/Documentation/applications/nsh/commands.rst
index 674ab22868..7c2a3b0cef 100644
--- a/Documentation/applications/nsh/commands.rst
+++ b/Documentation/applications/nsh/commands.rst
@@ -876,7 +876,7 @@ implementation is simplified for use with NuttX in these ways:
 
 **Command Syntax**::
 
-  ls [-lRs] <dir-path>
+  ls [-lRsh] <dir-path>
 
 **Synopsis**. Show the contents of the directory at
 ``<dir-path>``. NOTE: ``<dir-path>`` must refer to a directory and
@@ -888,6 +888,7 @@ no other file system object.
 ``-R`` 	Show the contents of specified directory and all of its sub-directories.
 ``-s`` 	Show the size of the files along with the filenames in the listing
 ``-l`` 	Show size and mode information along with the filenames in the listing.
+``-h`` 	Show size and mode information along with the filenames in the listing with humanable.
 ======  ================================
 
 .. _cmdlsmod:
@@ -1898,4 +1899,3 @@ Example::
   nsh>
 
 ``ping6`` differs from ``ping`` in that it uses IPv6 addressing.
-


(nuttx) 04/04: Documentation: add `-u` and `+%format` description for date command

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 149d6481295daf4e92c84a1f50cd5598ee96e464
Author: Junbo Zheng <zh...@xiaomi.com>
AuthorDate: Mon Jan 29 19:37:54 2024 +0800

    Documentation: add `-u` and `+%format` description for date command
    
    Reference:
    - https://github.com/apache/nuttx-apps/pull/745
    - https://github.com/apache/nuttx-apps/pull/2273
    
    Signed-off-by: Junbo Zheng <zh...@xiaomi.com>
---
 Documentation/applications/nsh/commands.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/applications/nsh/commands.rst b/Documentation/applications/nsh/commands.rst
index 834daf8e8f..aee407611c 100644
--- a/Documentation/applications/nsh/commands.rst
+++ b/Documentation/applications/nsh/commands.rst
@@ -231,9 +231,10 @@ indication only if the files differ.
 
 **Command Syntax**::
 
-  date [-s "MMM DD HH:MM:SS YYYY"]
+  date [-s "MMM DD HH:MM:SS YYYY"] [-u] [+%format]
 
-**Synopsis**. Show or set the current date and time.
+**Synopsis**. Show or set the current date and time or UTC with ``-u`` option,
+and support format output with ``+%format``.
 
 To show the current system time and date, type in the ``date`` command.
 The output displays the day of the week, day of the month, month, year,