0k / shyaml

YAML for command line
BSD 2-Clause "Simplified" License
767 stars 57 forks source link

Can not read subvalue of subvalue #64

Open GiovanniAffogbolo opened 3 years ago

GiovanniAffogbolo commented 3 years ago

Hello,

I found this tool (shyaml) and i have an issue using the function above :

test.yaml

people:
  Thomas:
    age: 15
    sex: M
  Laura:
    age: 15
    sex: F

Script bash : echo test.yaml | shyaml get-value people.Thomas.age

Executing this does not work. As if shyaml only read on the two first levels. Is it me who doesn't understand it properly or is true ? Is there a fix for this ? Thanks in advance.

jharris-tc commented 2 months ago

just found this but you need to run cat test.yaml, and then it does work