summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/utils.hpp')
-rw-r--r--src/other_tools/just_mr/utils.hpp31
1 files changed, 8 insertions, 23 deletions
diff --git a/src/other_tools/just_mr/utils.hpp b/src/other_tools/just_mr/utils.hpp
index d992a895..5caf33d0 100644
--- a/src/other_tools/just_mr/utils.hpp
+++ b/src/other_tools/just_mr/utils.hpp
@@ -55,36 +55,21 @@ struct JustSubCmdFlags {
// ordered, so that we have replicability
std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{
{"version",
- {false /*config*/,
- false /*build_root*/,
- false /*launch*/,
- false /*defines*/}},
+ {.config = false, .build_root = false, .launch = false, .defines = false}},
{"describe",
- {true /*config*/,
- false /*build_root*/,
- false /*launch*/,
- true /*defines*/}},
+ {.config = true, .build_root = false, .launch = false, .defines = true}},
{"analyse",
- {true /*config*/,
- true /*build_root*/,
- false /*launch*/,
- true /*defines*/}},
+ {.config = true, .build_root = true, .launch = false, .defines = true}},
{"build",
- {true /*config*/, true /*build_root*/, true /*launch*/, true /*defines*/}},
+ {.config = true, .build_root = true, .launch = true, .defines = true}},
{"install",
- {true /*config*/, true /*build_root*/, true /*launch*/, true /*defines*/}},
+ {.config = true, .build_root = true, .launch = true, .defines = true}},
{"rebuild",
- {true /*config*/, true /*build_root*/, true /*launch*/, true /*defines*/}},
+ {.config = true, .build_root = true, .launch = true, .defines = true}},
{"install-cas",
- {false /*config*/,
- true /*build_root*/,
- false /*launch*/,
- false /*defines*/}},
+ {.config = false, .build_root = true, .launch = false, .defines = false}},
{"gc",
- {false /*config*/,
- true /*build_root*/,
- false /*launch*/,
- false /*defines*/}}};
+ {.config = false, .build_root = true, .launch = false, .defines = false}}};
nlohmann::json const kDefaultConfigLocations = nlohmann::json::array(
{{{"root", "workspace"}, {"path", "repos.json"}},