Commit 6ed0da6e authored by aligungr's avatar aligungr

CLI shell improvement

parent 3a5ed36c
...@@ -215,6 +215,8 @@ static bool HandleMessage(const app::CliMessage &msg, bool isOneShot) ...@@ -215,6 +215,8 @@ static bool HandleMessage(const app::CliMessage &msg, bool isOneShot)
std::vector<std::string> tokens{}; std::vector<std::string> tokens{};
if (!opt::ReadLine(std::cin, std::cout, line, tokens)) if (!opt::ReadLine(std::cin, std::cout, line, tokens))
exit(0); exit(0);
if (line.empty())
continue;
server.sendMessage( server.sendMessage(
app::CliMessage::Command(InetAddress{cons::CMD_SERVER_IP, port}, line, g_options.nodeName)); app::CliMessage::Command(InetAddress{cons::CMD_SERVER_IP, port}, line, g_options.nodeName));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment