-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builtin: add support for CUE path-related functions #3126
Labels
FeatureRequest
New feature or request
Comments
Some consideration for such a piece of functionality:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Consider:
Manual parsing of string-encoded paths is required, which is error prone. e.g. this does not handle spaces, definitions etc.
Describe the solution you'd like
Some CUE path-related builtins, e.g. a builtin equivalent of
cue.ParsePath()
. Indexing could be done via a builtin, or supported via[]
if acue.Path
value is the index value.Describe alternatives you've considered
Manual parsing and handling of paths via regular string indexing, as above. Which doesn't work in all cases because you cannot index a definition in this way at least.
Additional context
n/a
The text was updated successfully, but these errors were encountered: