Replies: 1 comment
-
You could use dynamic selectors and The issue here is that there is no way to move back up the node tree once you select some nodes. I think to achieve this we'll need a new selector to move back up the node tree that will work alongside the filtering selectors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a TOML document and I would like to select only the "global" key/value pairs (APP_ID, DOMAIN_MAPPING, VERSION_ID) and ignore the values within an object (e.g. production object, sandbox object etc).
Is it possible to do that?
Please note that the global values
APP_ID
,DOMAIN_MAPPING
,PROXY_SERVER
are arbitrary and there could be more/less values so I can't select them by name (i.e..APP_ID
)dasel -f env.toml -p toml '.ignore-objects-selector'
Expected result:
I've tried
dasel -f env.toml -p toml '.(!=.*)'
but it doesn't return the desired result..Beta Was this translation helpful? Give feedback.
All reactions