opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Manage resources with CLEO á la `kubectl`.

Open vv-ab opened this issue 1 year ago • 1 comments

vv-ab avatar May 14 '24 09:05 vv-ab

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.

kKdH avatar May 23 '24 18:05 kKdH