commit | 1c76dea9f4dfc0dfec00586bc893cb8427d6cfce | [log] [tgz] |
---|---|---|
author | Petr Gotthard <petr.gotthard@centrum.cz> | Wed Apr 13 17:56:58 2022 +0200 |
committer | Petr Gotthard <petr.gotthard@centrum.cz> | Wed Apr 13 18:53:04 2022 +0200 |
tree | 103cddb993ff4faa5468acb804bdf61f97c568d4 | |
parent | 584319867121364d3516b3b36b72a202e979bf94 [diff] [blame] |
Add quit command Change-Id: Ia0a01a558ec92bb0d8f22fe2fbddf74b8d78242b
diff --git a/src/cli.cpp b/src/cli.cpp index 3ed40e8..9827fa3 100644 --- a/src/cli.cpp +++ b/src/cli.cpp
@@ -293,6 +293,9 @@ try { command_ cmd = parser.parseCommand(line, std::cout); boost::apply_visitor(Interpreter(parser, proxyDatastore), cmd); + if (cmd.type() == typeid(quit_)) { + break; + } } catch (InvalidCommandException& ex) { std::cerr << ex.what() << std::endl; } catch (DatastoreException& ex) {