zephyr/subsys/shell
Hunter Searle 898a59eb80 Shell: Edit shell to store/retrieve return values
This change to the shell API enables the user to retrieve the
return code of the most recently run shell command. This is
useful both for users wanting specific information beyond the print
statements in a command, but especially for automated users
that prefer a simple return code to parsing human readable text.
This was tested using all default shell commands, as well as
eeprom, flash, and i2c, where specific errors could be forced.
In all cases, the correct return value was returned by the new
retval command.

Signed-off-by: Hunter Searle <hsearle@xes-inc.com>
2023-05-02 16:52:21 +02:00
..
backends shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
modules shell: fix MISRA 5.7 violations on struct tm 2023-04-14 12:21:08 +02:00
CMakeLists.txt
Kconfig Shell: Edit shell to store/retrieve return values 2023-05-02 16:52:21 +02:00
Kconfig.template.shell_log_queue_size shell: shell_log_backend: take buffer size from config 2022-11-22 13:05:29 +09:00
Kconfig.template.shell_log_queue_timeout
shell_cmds.c Shell: Edit shell to store/retrieve return values 2023-05-02 16:52:21 +02:00
shell_fprintf.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_help.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_help.h shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_history.c
shell_log_backend.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
shell_ops.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_ops.h Shell: Edit shell to store/retrieve return values 2023-05-02 16:52:21 +02:00
shell_utils.c shell: Convert to using iterable sections 2023-04-18 12:48:16 +02:00
shell_utils.h shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_vt100.h
shell_wildcard.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_wildcard.h shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell.c Shell: Edit shell to store/retrieve return values 2023-05-02 16:52:21 +02:00