diff options
Diffstat (limited to 'bdep/ci-types.cxx')
-rw-r--r-- | bdep/ci-types.cxx | 28 |
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 ""; + } +} |