Skip to content

dorianmariecom/dorian-yaml-deep-pluck

Repository files navigation

dorian-yaml-deep-pluck

Recursively pluck matching paths from YAML.

Install

gem install dorian-yaml-deep-pluck

Also included in the aggregate gem:

gem install dorian

Usage

yaml-deep-pluck [options] key [key ...] [file ...]

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

Notes

  • Keys can be mapping keys or array indexes. Use --yaml for YAML output or --ruby for Ruby inspection output.

Examples

Find nested first elements

printf -- '- [1]\n- [2]\n' | yaml-deep-pluck 0

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors