Skip to content

dorianmariecom/dorian-yaml-deep-each

Repository files navigation

dorian-yaml-deep-each

Run a Ruby snippet for a YAML value and each nested value.

Install

gem install dorian-yaml-deep-each

Also included in the aggregate gem:

gem install dorian

Usage

yaml-deep-each [file ...] "ruby code"

Run yaml-deep-each -h for generated option details and yaml-deep-each -v for the installed version.

Notes

  • Visits the root first, then arrays and hashes recursively. it is deep-structified before the snippet runs.

Examples

Print every visited value

printf -- '- 1\n- 2\n' | yaml-deep-each "p it"

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors