Add dump command
Change-Id: If38d01ebb8788090f91a76daf6b7fc9add0320b7
diff --git a/src/interpreter.cpp b/src/interpreter.cpp
index 8ee2b55..85833f1 100644
--- a/src/interpreter.cpp
+++ b/src/interpreter.cpp
@@ -195,6 +195,11 @@
m_datastore.moveItem(pathToDataString(move.m_source, Prefixes::WhenNeeded), move.m_destination);
}
+void Interpreter::operator()(const dump_& dump) const
+{
+ std::cout << m_datastore.dump(dump.m_format) << "\n";
+}
+
struct commandLongHelpVisitor : boost::static_visitor<const char*> {
template <typename T>
auto constexpr operator()(boost::type<T>) const