opendut
opendut copied to clipboard
Manage resources with CLEO á la `kubectl`.
Hey @vv-ab, i restructured the YAML part and cleaned-up the API. It reduces the code to get a pre-parsed YamlSpecificationFile in CLEO to a single line:
let file = YamlSpecificationFile::try_from_yaml_str(&content)?;
After that, one can iterate over the contained documents and create finally-parsed SpecificationDocuments
file.documents.into_iter()
.map(SpecificationDocument::try_from)
.collect();
You should be able to pick up the task and use the that SpecificationDocuments to create resources at CARL.