Skip to content

dorianmariecom/dorian-yaml-each

Repository files navigation

dorian-yaml-each

Run a Ruby snippet for each top-level YAML item.

Install

gem install dorian-yaml-each

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • The parsed YAML value is converted to deep structs, then iterated.

Examples

Print each item

printf -- '- 1\n- 2\n' | yaml-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