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