CUE orders all values in a value lattice. A value more at the top of a hierarchy is what programming languages would refer to as a type. Concrete value or constraints on such a “type” are all instances of that type.
In other words, CUE constraints can be used to find patterns in data.
cue vet is a simple instance of this.
But more elaborate querying in the form of a
is certainly possible.
We would love to hear about your envisioned use cases to plan out
such a subcommand.
In the mean time, you can query data programmatically using the CUE API. What you will need to do is
- load data and constraints using
- Walk over data using
Walkmethod or look up specific values.
cue.Values to see if value is an instance of pattern.