6 ms·
I want to showcase one way to do the example jq/non-jq query using yamlpath: yaml-get -p '.tags[has_child(amd)][parent()].name' machines.json That can repla
by AndyKluger 3y ago
I want to showcase one way to do the example jq/non-jq query using yamlpath:
yaml-get -p '.tags[has_child(amd)][parent()].name' machines.json
That can replace
rcl query --output=raw machines.json '[
for m in input:
if m.get("tags", []).contains("amd"):
m.name
]'