Run a Ruby snippet for a YAML value and each nested value.
gem install dorian-yaml-deep-eachAlso included in the aggregate gem:
gem install dorianyaml-deep-each [file ...] "ruby code"Run yaml-deep-each -h for generated option details and yaml-deep-each -v for the installed version.
- Visits the root first, then arrays and hashes recursively.
itis deep-structified before the snippet runs.
printf -- '- 1\n- 2\n' | yaml-deep-each "p it"