Add get command
Change-Id: Id06539070fb8d815786149e1479e93d75d4b70f1
diff --git a/src/ast_commands.hpp b/src/ast_commands.hpp
index 3a92e10..969515e 100644
--- a/src/ast_commands.hpp
+++ b/src/ast_commands.hpp
@@ -59,8 +59,12 @@
bool operator==(const set_& b) const;
};
+struct get_ : x3::position_tagged {
+ bool operator==(const get_& b) const;
+ boost::optional<path_> m_path;
+};
-using command_ = boost::variant<ls_, cd_, create_, delete_, set_, commit_>;
+using command_ = boost::variant<ls_, cd_, create_, delete_, set_, commit_, get_>;
BOOST_FUSION_ADAPT_STRUCT(ls_, m_path)
BOOST_FUSION_ADAPT_STRUCT(cd_, m_path)
@@ -69,3 +73,4 @@
BOOST_FUSION_ADAPT_STRUCT(enum_, m_value)
BOOST_FUSION_ADAPT_STRUCT(set_, m_path, m_data)
BOOST_FUSION_ADAPT_STRUCT(commit_)
+BOOST_FUSION_ADAPT_STRUCT(get_, m_path)