From 1b5f0457e8708a57bd081257c8a18a7ae02f6516 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 28 Nov 2022 21:39:25 +0300 Subject: Add support for --target-config and --package-config to bdep-ci command --- bdep/ci-types.hxx | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'bdep/ci-types.hxx') diff --git a/bdep/ci-types.hxx b/bdep/ci-types.hxx index 1e8feea..fb496ba 100644 --- a/bdep/ci-types.hxx +++ b/bdep/ci-types.hxx @@ -11,11 +11,35 @@ namespace bdep { // This type is intended for accumulating package manifest override values - // from all the override-related options (see ci-parsers.hxx for details). + // from all the override-related options (see ci-parsers.hxx for details) to + // then validate it as a whole. // class cmd_ci_override: public vector { }; + + // While handling a potential validation error we need to be able to + // attribute this error back to the option which resulted with an invalid + // override. For that we will encode the value's origin option into the + // name/value line. + // + enum class cmd_ci_override_origin: uint64_t + { + override = 1, // --override + overrides_file, // --overrides-file + build_email, // --build-email + builds, // --builds + target_config, // --target-config + build_config, // --build-config + package_config, // --package-config + interactive // --interactive + }; + + // Return the override origin description as, for example, + // `--override option value`. + // + const char* + to_string (cmd_ci_override_origin); } #endif // BDEP_CI_TYPES_HXX -- cgit v1.1