mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 22:09:05 +00:00
[cli] move Process{Get/Set/Enable/Disable} methods to Utils class (#9951)
This commit moves the `Process{Get/Set/Enable/Disable}` methods to the
Output class and rename the `Output` class to `Utils`. The purpose is
to reduce code size in the Interpreter class to make the class focus
more on the command handling and easier for further refactoring.
The commit also removes the alias typedef of `Arg` in each cli module
because they are unnecessary. Having one definition in the parent
class is enough.
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ const int TcpExample::sCipherSuites[] = {MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8,
|
||||
#endif
|
||||
|
||||
TcpExample::TcpExample(otInstance *aInstance, OutputImplementer &aOutputImplementer)
|
||||
: Output(aInstance, aOutputImplementer)
|
||||
: Utils(aInstance, aOutputImplementer)
|
||||
, mInitialized(false)
|
||||
, mEndpointConnected(false)
|
||||
, mEndpointConnectedFastOpen(false)
|
||||
|
||||
Reference in New Issue
Block a user