CLI-Helpers

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "App::Nopaste" : "0",
            "Term::ReadLine::Gnu" : "0"
         },
         "requires" : {
            "Capture::Tiny" : "0",
            "Exporter" : "0",
            "File::Basename" : "0",
            "Getopt::Long" : "0",
            "IO::Interactive" : "0",
            "Module::Load" : "0",
            "Ref::Util" : "0",
            "Sys::Syslog" : "0",
            "Term::ANSIColor" : "2.01",
            "Term::ReadKey" : "0",
            "Term::ReadLine" : "0",
            "YAML" : "0",
            "feature" : "0",
            "perl" : "5.010001",
            "strict" : "0",
            "warnings" : "0"
         }

META.yml  view on Meta::CPAN

recommends:
  App::Nopaste: '0'
  Term::ReadLine::Gnu: '0'
requires:
  Capture::Tiny: '0'
  Exporter: '0'
  File::Basename: '0'
  Getopt::Long: '0'
  IO::Interactive: '0'
  Module::Load: '0'
  Ref::Util: '0'
  Sys::Syslog: '0'
  Term::ANSIColor: '2.01'
  Term::ReadKey: '0'
  Term::ReadLine: '0'
  YAML: '0'
  feature: '0'
  perl: '5.010001'
  strict: '0'
  warnings: '0'
resources:

Makefile.PL  view on Meta::CPAN

  "LICENSE" => "bsd",
  "MIN_PERL_VERSION" => "5.010001",
  "NAME" => "CLI::Helpers",
  "PREREQ_PM" => {
    "Capture::Tiny" => 0,
    "Exporter" => 0,
    "File::Basename" => 0,
    "Getopt::Long" => 0,
    "IO::Interactive" => 0,
    "Module::Load" => 0,
    "Ref::Util" => 0,
    "Sys::Syslog" => 0,
    "Term::ANSIColor" => "2.01",
    "Term::ReadKey" => 0,
    "Term::ReadLine" => 0,
    "YAML" => 0,
    "feature" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {

Makefile.PL  view on Meta::CPAN

  "Capture::Tiny" => 0,
  "Exporter" => 0,
  "File::Basename" => 0,
  "File::Spec" => 0,
  "Getopt::Long" => 0,
  "IO::Handle" => 0,
  "IO::Interactive" => 0,
  "IPC::Open3" => 0,
  "Module::Load" => 0,
  "Pod::Coverage::TrustPod" => 0,
  "Ref::Util" => 0,
  "Sys::Syslog" => 0,
  "Term::ANSIColor" => "2.01",
  "Term::ReadKey" => 0,
  "Term::ReadLine" => 0,
  "Test::More" => 0,
  "Test::Perl::Critic" => 0,
  "YAML" => 0,
  "feature" => 0,
  "strict" => 0,
  "warnings" => 0

lib/CLI/Helpers.pm  view on Meta::CPAN


use strict;
use feature qw(state);
use warnings;

use Capture::Tiny qw(capture);
use File::Basename;
use Getopt::Long qw(GetOptionsFromArray :config pass_through);
use IO::Interactive qw( is_interactive );
use Module::Load qw(load);
use Ref::Util qw(is_ref is_arrayref is_hashref);
use Sys::Syslog qw(:standard);
use Term::ANSIColor 2.01 qw(color colored colorstrip);
use Term::ReadKey;
use Term::ReadLine;
use YAML;

our $VERSION = '2.0'; # VERSION

# Capture ARGV at Load
my @ORIG_ARGS;



( run in 0.260 second using v1.01-cache-2.11-cpan-4d50c553e7e )