I have a Bash array of elements that I want to end up in an array in YAML. How do I accomplish that?
The jq equivalent is $ARGS.positional. I would accomplish what I want with the followin:
➜ meh=(foo bar baz); jq --null-input '{catpants: $ARGS.positional}' --args "${meh[@]}"
{
"catpants": [
"foo",
"bar",
"baz"
]
}
Is this possible with yq?