Refactored command line handling

This commit is contained in:
Bartek Kryza
2023-03-11 18:59:53 +01:00
parent 41537c5401
commit f1c125bf32
17 changed files with 1066 additions and 609 deletions

View File

@@ -51,6 +51,7 @@ struct plantuml {
};
struct diagram_template {
std::string description;
common::model::diagram_t type;
std::string jinja_template;
};
@@ -227,6 +228,8 @@ struct config : public inheritable_diagram_options {
"diagram_templates"};
std::map<std::string, std::shared_ptr<diagram>> diagrams;
void initialize_diagram_templates();
};
//
@@ -287,6 +290,8 @@ YAML::Emitter &operator<<(YAML::Emitter &out, const option<T> &o)
config load(const std::string &config_file,
std::optional<bool> paths_relative_to_pwd = {});
config load_plain(const std::string &config_file);
} // namespace config
namespace common::model {