feat(console): Add max_cmdline_args to esp_console_repl_config_t

This commit is contained in:
Guillaume Souchere
2026-05-11 08:19:55 +02:00
parent e875d571b2
commit 6d9413c09b
7 changed files with 84 additions and 10 deletions
@@ -35,6 +35,7 @@ typedef struct {
const char *history_save_path;
TaskHandle_t task_hdl; // REPL task handle
size_t max_cmdline_length; // Maximum length of a command line. If 0, default value will be used.
size_t max_cmdline_args; // Maximum number of command line arguments to parse. If 0, default value will be used.
} esp_console_repl_com_t;
typedef struct {
@@ -44,7 +45,7 @@ typedef struct {
void esp_console_repl_task(void *args);
esp_err_t esp_console_common_init(size_t max_cmdline_length, esp_console_repl_com_t *repl_com);
esp_err_t esp_console_common_init(size_t max_cmdline_length, size_t max_cmdline_args, esp_console_repl_com_t *repl_com);
esp_err_t esp_console_setup_prompt(const char *prompt, esp_console_repl_com_t *repl_com);
esp_err_t esp_console_setup_history(const char *history_path,
uint32_t max_history_len,