blob: fb496ba82ee22131330ca7bc08f461767b4d7ef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// file : bdep/ci-types.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef BDEP_CI_TYPES_HXX
#define BDEP_CI_TYPES_HXX
#include <bdep/types.hxx>
#include <libbutl/manifest-types.hxx>
namespace bdep
{
// This type is intended for accumulating package manifest override values
// 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
|