App-TextTemplatePermuteUtils
view release on metacpan or search on metacpan
NAME
App::TextTemplatePermuteUtils - CLI utilities related to
Text::Template::Permute
VERSION
This document describes version 0.002 of App::TextTemplatePermuteUtils
(from Perl distribution App-TextTemplatePermuteUtils), released on
2026-02-22.
DESCRIPTION
This distributions provides the following command-line utilities related
to text fragment:
* template-permute
FUNCTIONS
template_permute
Usage:
template_permute(%args) -> [$status_code, $reason, $payload, \%result_meta]
Process a Text::Template::Permute template and output the results.
This function is not exported.
Arguments ('*' denotes required arguments):
* array => *bool*
Return items as array, not as a single string.
* clipboard => *str*
Add items to clipboard.
* items => *posint*
Only return this many items.
* separator => *str*
String to add as separator between items (only when not specifying
--array).
* shuffle => *bool*
Shuffle/randomize order or results.
* template => *str*
The template string.
Returns an enveloped result (an array).
First element ($status_code) is an integer containing HTTP-like status
code (200 means OK, 4xx caller error, 5xx function error). Second
element ($reason) is a string containing error message, or something
like "OK" if status is 200. Third element ($payload) is the actual
result, but usually not present when enveloped result is an error
response ($status_code is not 2xx). Fourth element (%result_meta) is
called result metadata and is optional, a hash that contains extra
information, much like how HTTP response headers provide additional
metadata.
Return value: (any)
HOMEPAGE
Please visit the project's homepage at
<https://metacpan.org/release/App-TextTemplatePermuteUtils>.
SOURCE
Source repository is at
<https://github.com/perlancar/perl-App-TextTemplatePermuteUtils>.
SEE ALSO
Text::Template::Permute
AUTHOR
perlancar <perlancar@cpan.org>
CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull
requests on GitHub.
Most of the time, you don't need to build the distribution yourself. You
can simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally
on your system), you can install Dist::Zilla,
Dist::Zilla::PluginBundle::Author::PERLANCAR,
Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two
other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
( run in 0.775 second using v1.01-cache-2.11-cpan-2398b32b56e )