Skip to content
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

[Feature request] Extract keys and values into objects instead of dotted.variable.names #95

Open
Daniel314 opened this issue Feb 16, 2021 · 0 comments

Comments

@Daniel314
Copy link

Hello,

The current 'kv' module stores extracted keys and values in 'dotted' notation (some.prefix.key1 = value1, some.prefix.key2 = value2, ...)
I would like to request that a variant of this request be added to the 'kv' module, where values are stored in object notation, instead
of dotted notation (e.g. [some][prefix][key1] = value1, [some][prefix][key2] = value2).

This becomes especially handy for nested keys (e.g. [some][prefix][keytop][keybottom]), so that all keys under 'keytop' can be renamed/moved en-masse to some other object.
I'm using a ruby { code => '' } block as my current workaround, but isn't as elegant.

Thanks,

 - Daniel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant