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
dasel put -t json -s 'array.[]' -v "{…}"
to a TOML file crashes dasel
#282
Comments
Thanks for raising this issue. I am able to replicate it and will do some digging. As an FYI, you are able to create a complex object using any of the parsers. Here's an example with TOML input:
The related docs are here: https://daseldocs.tomwright.me/commands/put
|
@TomWright thank you for looking into this! FWIW, I had tried using |
I am currently reworking the encode/decode logic for all formats as part of #289. I can reevaluate and hopefully fix this issue as part of that work. |
Describe the bug
dasel put
fails to write more than one complex element (of type JSON, which is apparently how one denotes an object regardless of the target format) to an array in a TOML file.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The above commands should succeed.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: