diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-28 21:39:25 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-12-06 13:47:43 +0300 |
commit | 1b5f0457e8708a57bd081257c8a18a7ae02f6516 (patch) | |
tree | 4ae80a825dd2a2c4010664017296f6c61e898c12 /bdep/ci-types.hxx | |
parent | 1bcba2c1b09f440e4017d5aeb411e5efaf08b809 (diff) |
Add support for --target-config and --package-config to bdep-ci command
Diffstat (limited to 'bdep/ci-types.hxx')
-rw-r--r-- | bdep/ci-types.hxx | 26 |
1 files changed, 25 insertions, 1 deletions
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<butl::manifest_name_value> { }; + + // 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 |