Skip to content

dorianmariecom/dorian-yaml-all

Repository files navigation

dorian-yaml-all

Run one Ruby snippet against the whole YAML value.

Install

gem install dorian-yaml-all

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • Sets it to the parsed YAML value converted to deep structs.

Examples

Print a top-level value

printf 'name: Dorian\n' | yaml-all "puts it.name"

Output:

Dorian

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors