More data object creation and test commands

This commit is contained in:
2025-11-30 23:19:18 -06:00
parent b40878a489
commit 678b762df5
8 changed files with 67 additions and 79 deletions

View File

@@ -30,6 +30,8 @@ public static class SztlParser
_ => throw new NotImplementedException($"Unknown template_type '{templateType}'")
};
template.SztlText = tomlText.Trim();
if (metadata.TryGetValue("id", out var idVal)) template.Id = idVal?.ToString()!;
else throw new Exception("Template missing id metadata");