aboutsummaryrefslogtreecommitdiff
path: root/bdep/ci-types.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-28 21:39:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-06 13:47:43 +0300
commit1b5f0457e8708a57bd081257c8a18a7ae02f6516 (patch)
tree4ae80a825dd2a2c4010664017296f6c61e898c12 /bdep/ci-types.cxx
parent1bcba2c1b09f440e4017d5aeb411e5efaf08b809 (diff)
Add support for --target-config and --package-config to bdep-ci command
Diffstat (limited to 'bdep/ci-types.cxx')
-rw-r--r--bdep/ci-types.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/bdep/ci-types.cxx b/bdep/ci-types.cxx
new file mode 100644
index 0000000..00b4098
--- /dev/null
+++ b/bdep/ci-types.cxx
@@ -0,0 +1,28 @@
+// file : bdep/ci-types.cxx -*- C++ -*-
+// license : MIT; see accompanying LICENSE file
+
+#include <bdep/ci-types.hxx>
+
+namespace bdep
+{
+ const char*
+ to_string (cmd_ci_override_origin o)
+ {
+ using orig = cmd_ci_override_origin;
+
+ switch (o)
+ {
+ case orig::override: return "--override option value";
+ case orig::overrides_file: return "file referenced by --overrides-file option";
+ case orig::build_email: return "--build-email option value";
+ case orig::builds: return "--builds option value";
+ case orig::target_config: return "--target-config option value";
+ case orig::build_config: return "--build-config option value";
+ case orig::package_config: return "--package-config option value";
+ case orig::interactive: return "--interactive|-i option value";
+ }
+
+ assert (false); // Can't be here.
+ return "";
+ }
+}