dorian-yaml-pluck
Pluck one path from YAML input.
Install
gem install dorian-yaml-pluckAlso included in the aggregate gem:
gem install dorianUsage
yaml-pluck [options] key [key ...] [file ...]Run yaml-pluck -h for generated option details and yaml-pluck -v for the installed version.
Notes
- Keys can be mapping keys or array indexes. Use
--yamlfor YAML output or--rubyfor Ruby inspection output.
Examples
Pluck a mapping value
echo "name: Dorian" | yaml-pluck nameOutput:
Dorian