[C++] Add findleaves support to FindEmulator
diff --git a/find.h b/find.h
index 25cd258..da8854b 100644
--- a/find.h
+++ b/find.h
@@ -25,12 +25,19 @@
class FindCond;
+enum struct FindCommandType {
+ FIND,
+ FINDLEAVES,
+ LS,
+};
+
struct FindCommand {
FindCommand();
~FindCommand();
bool Parse(const string& cmd);
+ FindCommandType type;
StringPiece chdir;
StringPiece testdir;
vector<StringPiece> finddirs;
@@ -38,6 +45,7 @@
unique_ptr<FindCond> print_cond;
unique_ptr<FindCond> prune_cond;
int depth;
+ int mindepth;
};
class FindEmulator {