Replies: 2 comments
-
related to #1013 I would be interested in knowing how to define functional abstractions. The most practical way we have found so far is to use templates to build a list keyed by ids: For instance:
This is simple enough and almost works (see #1134). I would be interested in knowing other alternatives, ... |
Beta Was this translation helpful? Give feedback.
-
@romange - thank you, documentation is one area that we know needs attention that we are looking to tackle in parallel to the primary focus of reaching language stability and a backwards compatibility in a v1.0.0 release. As @PierreR points out above, #1013 will end up being the main focus of that effort. Until then, the language specification is the definitive source of language features, combined with parts of cuelang.org. Please feel free to add comments/suggestions to #336 and #936. |
Beta Was this translation helpful? Give feedback.
-
Based on what I saw https://cuelang.org/docs/ is mostly focused on theoretical aspects of the language.
It is pretty hard to project its features on real use-cases for engineers that are not experts in Jsonnet/GCL/HCL.
Specifically,
Based on github discussions I saw there are
for
andif
constructs and maybe there are other features present, but I could not find them in the official docs. I would like to see list of features supported even with scarce/no documentation so I could know what to ask about in slack/github channels.I would like to see practical examples that tackle use-cases of conditional configurations based on runtime arguments, similarly to this ytt example: https://github.com/romange/docker/blob/master/packer/provision/userdata.yml#L47
There I generate yaml (or json) configurations using ytt conditional constructs from the same source configuration.
I saw that ytt has schema support as well. It would be interesting to see how cue compares to ytt.
Beta Was this translation helpful? Give feedback.
All reactions