The project is in a healthy, maintained state
plucks yaml from yaml path
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

dorian-yaml-pluck

Pluck one path from YAML input.

Install

gem install dorian-yaml-pluck

Also included in the aggregate gem:

gem install dorian

Usage

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 --yaml for YAML output or --ruby for Ruby inspection output.

Examples

Pluck a mapping value

echo "name: Dorian" | yaml-pluck name

Output:

Dorian