Interpolation of optional fields #807
Replies: 3 comments 3 replies
-
Not sure if this is simpler, but another option is to use the
(self plug) https://github.com/hofstadter-io/hof is a tool for when you want to generate many files from a schema defined in Cue. |
Beta Was this translation helpful? Give feedback.
-
If Also some of the proposed constructs in the query proposal will help here. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#807. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
Let say I have a few fields to interpolate in a string (some are optionals, some are not), my current solution is:
So the question is: is there a more simple way to do this ?
Beta Was this translation helpful? Give feedback.
All reactions