diff options
Diffstat (limited to 'src/other_tools/just_mr/setup_utils.hpp')
-rw-r--r-- | src/other_tools/just_mr/setup_utils.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index 66691441..e29df4a6 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -18,6 +18,7 @@ #include <filesystem> #include <memory> #include <optional> +#include <set> #include <string> #include <vector> @@ -35,6 +36,22 @@ std::vector<std::string> const kAltDirs = {"target_root", "rule_root", "expression_root"}; +auto const kRepositoryExpectedFields = + std::unordered_set<std::string>{"bindings", + "expression_file_name", + "expression_root", + "repository", + "rule_file_name", + "rule_root", + "target_file_name", + "target_root"}; + +// Substrings in repository field names that indicate commonly-used +// additional keys not used by just-mr but deliberately added by the +// author of the repository configuration. +auto const kRepositoryPossibleFieldTrunks = + std::vector<std::string>{"bootstrap", "doc", "extra"}; + namespace JustMR { struct SetupRepos { |