25 #ifndef ACE_UTILS_CLI_COMMAND_MANAGER_H
26 #define ACE_UTILS_CLI_COMMAND_MANAGER_H
28 #include <AceRoutine.h>
29 #include "CommandDispatcher.h"
30 #include "StreamLineReader.h"
81 template<u
int8_t BUF_SIZE, u
int8_t ARGV_SIZE>
97 Stream& serial,
const char* prompt =
nullptr):
99 mNumCommands(numCommands),
102 mStreamLineReader(mChannel, mSerial, mLineBuffer, BUF_SIZE),
103 mDispatcher(mChannel, mSerial, mCommands, mNumCommands,
104 mArgv, ARGV_SIZE, mPrompt) {}
112 mDispatcher.runCoroutine();
121 uint8_t
const mNumCommands;
123 const char*
const mPrompt;
124 ace_routine::Channel<InputLine> mChannel;
127 char mLineBuffer[BUF_SIZE];
128 const char* mArgv[ARGV_SIZE];