shell: optionally set shell root command using Kconfig
If the shell root command shall be set in the application, e.g. for implementing a login scheme, it is an advantage to set this already during shell init. This is now implemented using a new Kconfig variable SHELL_CMD_ROOT. Signed-off-by: Hans Wilmers <hans@wilmers.no>
This commit is contained in:
parent
8d976998bf
commit
414603fc9c
4 changed files with 24 additions and 6 deletions
|
@ -81,6 +81,8 @@ const struct shell_static_entry *z_shell_get_last_command(
|
|||
void z_shell_spaces_trim(char *str);
|
||||
void z_shell_cmd_trim(const struct shell *shell);
|
||||
|
||||
const struct shell_static_entry *root_cmd_find(const char *syntax);
|
||||
|
||||
static inline void z_transport_buffer_flush(const struct shell *shell)
|
||||
{
|
||||
z_shell_fprintf_buffer_flush(shell->fprintf_ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue