pandastrike / yaml-cli

A simple CLI for querying and updating YAML files
ISC License
86 stars 5 forks source link

Support tags/custom data types #28

Open varac opened 6 years ago

varac commented 6 years ago

Please support custom data types like the one ansible-vault uses. Currently, it breaks on encrypted values from ansible-vault:

⏻ 255 projects/yaml  » cat ansible-vault.yml 
---
borgbackup_passphrase: !vault |
  $ANSIBLE_VAULT;1.1;AES256
  36663038343936383561366666353737613461653737363738636665306530326561363231616135
  3264653231353133363564326463643136373965636531380a396638326335313334343530353339
  61393232346439646538646331356665666465373662313734313439663465333166653764656664
  3363356663613563330a343366303030336236326138323965306564393861643031616161616632
  66373430336661383630376630306561663166313535346232383937356239653266323836383536
  3734336333393030653461396339613762373139666237643232

⏻  projects/yaml  » yaml get ansible-vault.yml borgbackup_passphrase 
yaml: error parsing YAML
unknown tag !<!vault> at line 10, column 1:

    ^