App-CrossPericmd
view release on metacpan or search on metacpan
script/cross-pericmd view on Meta::CPAN
=pod
=encoding UTF-8
=head1 NAME
cross-pericmd - Output the cross product of two or more sets
=head1 VERSION
This document describes version 0.003 of cross-pericmd (from Perl distribution App-CrossPericmd), released on 2019-11-29.
=head1 SYNOPSIS
Usage:
% cross-pericmd [options] <aos> ...
Examples:
% cross-pericmd 1,2,3 4,5
+---+---+
| 1 | 4 |
| 1 | 5 |
| 2 | 4 |
| 2 | 5 |
| 3 | 4 |
| 3 | 5 |
+---+---+
Same as previous example, but output JSON:
% cross-pericmd 1,2,3 4,5 --json
[200,"OK",[["1","4"],["1","5"],["2","4"],["2","5"],["3","4"],["3","5"]],{"stream":0}]
% cross-pericmd 1,2 foo,bar --format json-pretty --naked-res
[
[
"1",
"foo"
],
[
"1",
"bar"
],
[
"2",
"foo"
],
[
"2",
"bar"
]
]
=head1 DESCRIPTION
This is more or less the same as the L<cross> CLI on CPAN (from
L<Set::CrossProduct>) except that this CLI is written using the
L<Perinci::CmdLine> framework. It returns table data which might be more
easily consumed by other tools.
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--aoaos>=I<s>*
=back
=head2 Configuration options
=over
=item B<--config-path>=I<s>, B<-c>
Set path to configuration file.
=item B<--config-profile>=I<s>, B<-P>
Set configuration profile to use.
=item B<--no-config>, B<-C>
Do not use any configuration file.
=back
=head2 Environment options
=over
=item B<--no-env>
Do not read environment for default options.
=back
=head2 Output options
=over
=item B<--format>=I<s>
Choose output format, e.g. json, text.
Default value:
undef
=item B<--json>
Set output format to json.
=item B<--naked-res>
( run in 0.922 second using v1.01-cache-2.11-cpan-e1769b4cff6 )