The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::ypath - Extract information from YAML

SYNOPSIS

        # separate keys by /
        % extract_yaml_info dist_info/dist_file directory_of_yaml_files

        # separate multiple values with commas
        % extract_yaml_info dist_info/dist_file,run_info/alarm_error directory_of_yaml_files

        # print the filename with each output line
        % extract_yaml_info -f dist_info/dist_file directory_of_yaml_files

        # print the path to each value
        % extract_yaml_info -f -k dist_info/dist_file directory_of_yaml_files

        # suppress warnings
        % extract_yaml_info -w dist_info/dist_file directory_of_yaml_files

DESCRIPTION

This is a simple script to extract values from a list of YAML files. It's meant for simple and quick inspections rather than full-on queries and collations.

TO DO

  • Support @ in any position as a wildcard to process all thingys at that level

SOURCE AVAILABILITY

This code is in Github:

        https://github.com/briandfoy/app-ypath

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Copyright © 2010-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.