Add ls
Change-Id: I86f799ff9577940c7df8e01cda6c6b7867de8e7e
diff --git a/src/ast_commands.hpp b/src/ast_commands.hpp
index 90af8ea..d7d47c9 100644
--- a/src/ast_commands.hpp
+++ b/src/ast_commands.hpp
@@ -28,6 +28,11 @@
using keyValue_ = std::pair<std::string, std::string>;
+struct ls_ : x3::position_tagged {
+ bool operator==(const ls_& b) const;
+ boost::optional<path_> m_path;
+};
+
struct cd_ : x3::position_tagged {
bool operator==(const cd_& b) const;
path_ m_path;
@@ -63,8 +68,9 @@
leaf_data_ m_data;
};
-using command_ = boost::variant<cd_, create_, delete_, set_>;
+using command_ = boost::variant<ls_, cd_, create_, delete_, set_>;
+BOOST_FUSION_ADAPT_STRUCT(ls_, m_path)
BOOST_FUSION_ADAPT_STRUCT(cd_, m_path)
BOOST_FUSION_ADAPT_STRUCT(create_, m_path)
BOOST_FUSION_ADAPT_STRUCT(delete_, m_path)