diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-17 22:41:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-26 20:29:46 +0300 |
commit | 1540e984279d25e5a83894216c3610990528b95c (patch) | |
tree | bf99a54444722c47e0c1429dfe18c7cca9069b0b /bdep/ci-parsers.hxx | |
parent | bf02b66c61d941a60e45520ef77f677dad36557e (diff) |
Add override options to bdep-ci
Namely the options are: --override, --overrides-file, --builds and
--build-email.
Diffstat (limited to 'bdep/ci-parsers.hxx')
-rw-r--r-- | bdep/ci-parsers.hxx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bdep/ci-parsers.hxx b/bdep/ci-parsers.hxx new file mode 100644 index 0000000..5a8f664 --- /dev/null +++ b/bdep/ci-parsers.hxx @@ -0,0 +1,36 @@ +// file : bdep/ci-parsers.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// CLI parsers, included into the generated source files. +// + +#ifndef BDEP_CI_PARSERS_HXX +#define BDEP_CI_PARSERS_HXX + +#include <bdep/ci-types.hxx> + +namespace bdep +{ + namespace cli + { + class scanner; + + template <typename T> + struct parser; + + // Accumulate package manifest override values from all the override- + // related options (--override, --overrides-file, etc), preserving their + // order. Translate each option into one or more values according to the + // option-specific semantics. + // + template <> + struct parser<ci_override> + { + static void + parse (ci_override&, bool&, scanner&); + }; + } +} + +#endif // BDEP_CI_PARSERS_HXX |