cli support router mode

Co-authored-by: Piotr Wilkin <ilintar@gmail.com>
This commit is contained in:
Xuan Son Nguyen
2026-06-23 16:39:59 +02:00
parent 85c58bbcd0
commit 1401fc3ca7
5 changed files with 89 additions and 6 deletions
+6 -2
View File
@@ -162,8 +162,12 @@ namespace view {
console::log("\n> %s\n", buffer.c_str());
}
}
std::string read_input(bool multiline_input) {
console::log("\n> ");
std::string read_input(bool multiline_input, const char * prompt = nullptr) {
if (prompt) {
console::log("%s", prompt);
} else {
console::log("\n> ");
}
std::string buffer;
std::string line;
bool another_line = true;