App-PericmdUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    This distribution includes a few utility scripts related to
    Perinci::CmdLine modules family.

    *   detect-pericmd-script

    *   dump-pericmd-script

    *   gen-pod-for-pericmd-script

    *   list-pericmd-plugins

FUNCTIONS
  list_pericmd_plugins
    Usage:

     list_pericmd_plugins(%args) -> [$status_code, $reason, $payload, \%result_meta]

    List Perinci::CmdLine plugins.

    Examples:

    *   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",
           ],
           {},
         ]

    *   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 0.944 second using v1.01-cache-2.11-cpan-39bf76dae61 )