Added generation of package diagrams from directory structure instead of namespaces

This commit is contained in:
Bartek Kryza
2023-05-26 21:05:28 +02:00
parent c3dcac72da
commit 467c021e17
11 changed files with 248 additions and 32 deletions

View File

@@ -469,6 +469,13 @@ template <> struct convert<package_diagram> {
return false;
get_option(node, rhs.layout);
get_option(node, rhs.relative_to);
get_option(node, rhs.package_type);
// Ensure relative_to has a value
if (!rhs.relative_to.has_value)
rhs.relative_to.set(
std::filesystem::current_path().lexically_normal());
return true;
}