CLI-Driver

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

     - misc usage improvements

0.70 - Fix _get_val to not through error for missing required soft args

0.69 - added link to source code on github (thanks to Gabor Szabo)

0.68 - removed circular dependency on Util::Medley

0.67 - modified error message in CLI::Driver::Action::do()
 
0.66 - fixed #129062: Undeclared dependency on namespace::autoclean

0.65 - added feature to allow invocation through a hash of values rather
       than @ARGV
       
0.64 - changes to handle repeatable args

0.63 - converted yaml sorting to use nsort from Util::Medley

0.62 - fixed yaml sorting issue

META.json  view on Meta::CPAN

            "Devel::Confess" : "0",
            "File::Basename" : "0",
            "File::ShareDir" : "0",
            "Kavorka" : "0",
            "Modern::Perl" : "0",
            "Module::Load" : "0",
            "Moose" : "0",
            "Sort::Naturally" : "0",
            "Time::localtime" : "0",
            "YAML::Syck" : "1.31",
            "namespace::autoclean" : "0",
            "perl" : "5.006"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "web" : "https://github.com/gravattj/CLI-Driver-perl/issues"
      },
      "homepage" : "https://github.com/gravattj/CLI-Driver-perl",

META.yml  view on Meta::CPAN

  Devel::Confess: '0'
  File::Basename: '0'
  File::ShareDir: '0'
  Kavorka: '0'
  Modern::Perl: '0'
  Module::Load: '0'
  Moose: '0'
  Sort::Naturally: '0'
  Time::localtime: '0'
  YAML::Syck: '1.31'
  namespace::autoclean: '0'
  perl: '5.006'
resources:
  bugtracker: https://github.com/gravattj/CLI-Driver-perl/issues
  homepage: https://github.com/gravattj/CLI-Driver-perl
  repository: https://github.com/gravattj/CLI-Driver-perl.git
version: '0.77'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

    PREREQ_PM => {
        'Data::Printer'        => 0,
        'Devel::Confess'       => 0,
        'Capture::Tiny'        => 0,
        'File::Basename'       => 0,
        'File::ShareDir'       => 0,
        'Kavorka'              => 0,
        'Modern::Perl'         => 0,
        'Module::Load'         => 0,
        'Moose'                => 0,
        'namespace::autoclean' => 0,
        'Time::localtime'      => 0,
        'Sort::Naturally'      => 0,
        'YAML::Syck'           => '1.31',
    },
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES    => 'CLI-Driver-*' },
    META_MERGE => {
        'meta-spec' => { version => 2 },
        resources   => {
            repository => {

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

package CLI::Driver;

=head1 NAME

CLI::Driver - Drive your cli tool with YAML

=cut

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka 'method';
use Data::Printer alias => 'pdump';
use CLI::Driver::Action;
use Module::Load;

use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');

lib/CLI/Driver/Action.pm  view on Meta::CPAN

package CLI::Driver::Action;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Deprecated;
use CLI::Driver::Class;
use CLI::Driver::Method;
use CLI::Driver::Help;
use Module::Load;
use File::Basename;
use YAML::Syck;

lib/CLI/Driver/ArgParserRole.pm  view on Meta::CPAN

package CLI::Driver::ArgParserRole;

use Modern::Perl;
use Moose::Role;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

#########################################################################################

#########################################################################################

=pod orig

method _parse_req_args (HashRef :$type_href) {

lib/CLI/Driver/Class.pm  view on Meta::CPAN

package CLI::Driver::Class;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Option;

with
  'CLI::Driver::CommonRole',
  'CLI::Driver::ArgParserRole';
  
###############################
###### PUBLIC ATTRIBUTES ######

lib/CLI/Driver/CommonRole.pm  view on Meta::CPAN

package CLI::Driver::CommonRole;

use Modern::Perl;
use Moose::Role;
use namespace::autoclean;
use Kavorka 'method';
use Data::Printer alias => 'pdump';
use Devel::Confess;
use Capture::Tiny 'capture';
use Time::localtime;

#########################################################################################

has verbosity => (
	is      => 'rw',

lib/CLI/Driver/Deprecated.pm  view on Meta::CPAN

package CLI::Driver::Deprecated;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Option;

with
  'CLI::Driver::CommonRole',
  'CLI::Driver::ArgParserRole';

###############################
###### PUBLIC ATTRIBUTES ######

lib/CLI/Driver/Exec.pm  view on Meta::CPAN

package CLI::Driver::Exec;

our $VERSION = '0.01';

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Method::Signatures;
use Data::Printer alias => 'pdump';
use Carp;
use Sort::Naturally;
use YAML::Syck;

##############################################################################
# PUBLIC ATTRIBUTES
##############################################################################

lib/CLI/Driver/Help.pm  view on Meta::CPAN

package CLI::Driver::Help;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

with
  'CLI::Driver::CommonRole';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

lib/CLI/Driver/Method.pm  view on Meta::CPAN

package CLI::Driver::Method;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Option;

with
  'CLI::Driver::CommonRole',
  'CLI::Driver::ArgParserRole';

###############################
###### PUBLIC ATTRIBUTES ######

lib/CLI/Driver/Option.pm  view on Meta::CPAN

package CLI::Driver::Option;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Deprecated;

use Getopt::Long 'GetOptionsFromArray';
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');

with 'CLI::Driver::CommonRole';

t/lib/CLI/Driver/Test.pm  view on Meta::CPAN

package CLI::Driver::Test;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has env => (
    is      => 'rw',
    isa     => 'Str|Undef',

t/lib/CLI/Driver/Test2.pm  view on Meta::CPAN

package CLI::Driver::Test2;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has hard_attr => (
    is => 'rw',
    isa => 'Str',

t/lib/CLI/Driver/Test3.pm  view on Meta::CPAN

package CLI::Driver::Test3;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has reqattr => (
    is => 'rw',
    isa => 'Str',

t/lib/CLI/Driver/TestArray.pm  view on Meta::CPAN

package CLI::Driver::TestArray;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has attributeArrayReq => (
    is => 'rw',
    isa => 'ArrayRef[Str]',

t/lib/CLI/Driver/TestHelp.pm  view on Meta::CPAN

package CLI::Driver::TestHelp;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has attrArrayReq => (
    is => 'rw',
    isa => 'ArrayRef[Str]',

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.035 second using v1.00-cache-2.02-grep-82fe00e-cpan-c98054f2a92 )