App-PericmdUtils
view release on metacpan or search on metacpan
lib/App/PericmdUtils.pm view on Meta::CPAN
=item * L<gen-pod-for-pericmd-script>
=item * L<list-pericmd-plugins>
=back
=head1 FUNCTIONS
=head2 list_pericmd_plugins
Usage:
list_pericmd_plugins(%args) -> [$status_code, $reason, $payload, \%result_meta]
List Perinci::CmdLine plugins.
Examples:
=over
=item * Example #1:
list_pericmd_plugins();
Result:
[
200,
"OK",
[
"Debug::DumpArgs",
"Debug::DumpR",
"Debug::DumpRes",
"Flow::Exit",
"Plugin::Disable",
"Plugin::DisablePlugin",
"Run::Completion",
"Run::DebugCompletion",
"Run::DumpObject",
"Run::Normal",
],
{},
]
=item * Show details:
list_pericmd_plugins(detail => 1);
Result:
[
200,
"OK",
[
{
name => "Debug::DumpArgs",
summary => "Dump command-line arguments (\$r->{args}), by default after argument validation",
tags => "category:debugging",
conf => "",
hooks => "after_validate_args",
dist => "Perinci-CmdLine-Lite",
},
{
name => "Debug::DumpR",
summary => "Dump request stash (\$r), by default after action",
dist => "Perinci-CmdLine-Lite",
conf => "",
hooks => "after_action",
tags => "category:debugging",
},
{
name => "Debug::DumpRes",
summary => "Dump result (\$r->{res}), by default after action",
tags => "category:debugging",
conf => "",
hooks => "after_action",
dist => "Perinci-CmdLine-Lite",
},
{
name => "Flow::Exit",
summary => "Exit program",
dist => "Perinci-CmdLine-Lite",
conf => "exit_code",
hooks => "after_action",
tags => "category:flow-control, category:debugging",
},
{
name => "Plugin::Disable",
summary => "Prevent the loading (activation) of other plugins",
tags => "category:plugin",
hooks => "before_activate_plugin",
conf => "plugins",
dist => "Perinci-CmdLine-Lite",
},
{
name => "Plugin::DisablePlugin",
summary => "Prevent the loading (activation) of other plugins",
dist => "Perinci-CmdLine-Lite",
hooks => "before_activate_plugin",
conf => "plugins",
tags => "category:plugin",
},
{
name => "Run::Completion",
summary => "Shell completion mode",
dist => "Perinci-CmdLine-Lite",
hooks => "on_run",
conf => "",
tags => "category:run-handler, category:completion",
},
{
name => "Run::DebugCompletion",
summary => "Debug completion",
dist => "Perinci-CmdLine-Lite",
conf => "log_file",
hooks => "on_run",
tags => "category:run-handler, category:debugging",
},
{
name => "Run::DumpObject",
( run in 2.453 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )