-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I am really enjoying using this. I've been trying to get parsing of nested maps to work, but somehow the inner dicts loose their "mapness" and as a result can't be index.
Think input like:
x = {args : {"a" : {
"b" : "c"
}
}}
as input to the env. x is a starlark.StringDict, and accessing x works fine inside of starlark.
args is a perfectly valid command.
args["a"] also works, but args["a"]["b"] throws a runtime exception of:
Error: unhandled index operation starlight_interface<map[string]interface {}>[string]
Curious if you ever solved this?
In general, I've been playing around with some additional wrappers on top of FromValue and ToValue in order to make them work recursively -- the use case is getting json in and out of starlark. My from value recursion works really well, but I'm struggling with ToValue and figured I'd try and start a conversation