App-PrettyRes
view release on metacpan or search on metacpan
bin/pretty-res view on Meta::CPAN
my $res = Getopt::Long::GetOptions(
'input|i=s' => \$Opts{input},
'output|o=s' => \$Opts{output},
'version|v' => sub {
say "pretty-res version ", ($main::VERSION // '?');
exit 0;
},
'help|h' => sub {
print <<USAGE;
Usage:
pretty-res [OPTIONS] < INPUT
pretty-res --version
pretty-res --help
Examples:
pretty-res -o yaml data.json
Options:
--input=s, -i Input format (json, yaml, perl; default is json).
--output=s, -o Output format (text, text-pretty, text-simple, yaml, json,
json-pretty, ruby, perl, php).
Consult manpage/documentation for more details.
USAGE
bin/pretty-res view on Meta::CPAN
pretty-res - Format enveloped result prettily
=head1 VERSION
This document describes version 0.03 of pretty-res (from Perl distribution App-PrettyRes), released on 2016-03-10.
=head1 SYNOPSIS
Usage:
% pretty-res [OPTIONS] < INPUT
Examples:
% echo '[200, "OK", [1..5]]' | pretty-res -i perl
.----.
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
( run in 0.227 second using v1.01-cache-2.11-cpan-4e96b696675 )