strip-result-env-yaml - Strip result envelope (YAML version)
version 0.55
% cmdline-script ... --format=yaml | strip-result-env-yaml
This is a simple utility to strip result envelope (that is, the status and message). It will change:
[200, "OK", {foo: bar}] [405, "Not found"] [200, "OK", "result", {result_metadata1: "val"}]
to:
{foo: bar} ~ "result"
It accepts and outputs YAML (parsing is done with YAML::Syck Perl module). It passes data unchanged if input data is not enveloped result. It dies on error.
Perinci::CmdLine
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2012 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perinci::CmdLine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::CmdLine
CPAN shell
perl -MCPAN -e shell install Perinci::CmdLine
For more information on module installation, please visit the detailed CPAN module installation guide.