Skip to content

dorianmariecom/dorian-yaml-map

Repository files navigation

dorian-yaml-map

Map YAML to YAML with a Ruby snippet.

Install

gem install dorian-yaml-map

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • Arrays map each element. Hashes map each [key, value] pair. The final YAML is printed.

Examples

Increment array items

printf -- '- 1\n- 2\n' | yaml-map "it += 1"

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors