add '--stdin-cmd' command line flag

This commit is contained in:
MihailRis 2026-02-11 16:01:46 +03:00
parent 7c0772b5b6
commit b200d38e48
4 changed files with 10 additions and 2 deletions

View file

@ -13,6 +13,8 @@ static std::thread reader_thread;
void start_stdin_reader(cmd::CommandsInterpreter& interpreter) {
reader_thread = std::thread([&interpreter]() {
logger.info() << "reader thread started";
std::string line;
while (std::getline(std::cin, line)) {
if (line.empty()) {