Commit Graph

2 Commits

Author SHA1 Message Date
Abtin Keshavarzian 91d00c5fd1 [cli] add multi-interpreter support (#13027)
This commit introduces an opaque `otCliInterpreter` type and a set of
new public C CLI APIs (e.g., `otCliInterpreterInit()`,
`otCliInterpreterInputLine()`) to support multiple, dynamically
allocated CLI interpreters per OpenThread instance.

This architecture allows applications to instantiate and manage
multiple concurrent CLI sessions. Backward compatibility is preserved
by retaining the original `otCli*` APIs, which now interact with a
single built-in static interpreter.

The `OPENTHREAD_CONFIG_CLI_STATIC_INTERPRETER_ENABLE` configuration
is also added. It enables support for the static interpreter and is
enabled by default. It can be disabled to save RAM in deployments
that solely use the multi-interpreter APIs.
2026-05-07 16:56:00 -05:00
Abtin Keshavarzian 54dd6f0e7a [cli] move public C APIs to dedicated cli_api.cpp (#13016)
This commit moves the public C APIs for the CLI from `cli.cpp` to
a new dedicated file `cli_api.cpp`.
2026-04-30 12:22:45 -07:00