-
Working off the 'put document' examples provided in the documentation lets say I have a
Running the command: returns
however if I run the command
everything runs as you would expect... dasel
Questions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to wrap the cat argument in double quotes so as it's picked up as a single string: $ echo '{"people":[]}' | dasel put document -p json -d yaml '.people.[]' "$(cat doc.yaml)"
{
"people": [
{
"color": "red",
"name": "tom"
}
]
} In your example, dasel is essentially given a null value which is why you got that result. |
Beta Was this translation helpful? Give feedback.
You need to wrap the cat argument in double quotes so as it's picked up as a single string:
In your example, dasel is essentially given a null value which is why you got that result.