cli: Ignore blank lines

If a user presses "enter" with no other input, the usual reaction from
other CLIs is to ignore that and just prompt again. It is handy for,
e.g., separating output of several commands.

Change-Id: If0c7647a22949a6f7fd9b32d663f88de9d033034
diff --git a/src/main.cpp b/src/main.cpp
index 73e39a6..a30cec1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -52,6 +52,12 @@
         if (std::cin.eof())
             break;
 
+        std::locale C_locale("C");
+        if (std::all_of(input.begin(), input.end(),
+                        [C_locale](const auto c) { return std::isspace(c, C_locale);})) {
+            continue;
+        }
+
         try {
             command_ cmd = parser.parseCommand(input, std::cout);
             boost::apply_visitor(Interpreter(parser, datastore), cmd);