view release on metacpan or search on metacpan
}
},
"runtime" : {
"requires" : {
"Capture::Tiny" : "0",
"Data::Printer" : "0",
"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"
}
}
},
directory:
- t
- inc
requires:
Capture::Tiny: '0'
Data::Printer: '0'
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
Makefile.PL view on Meta::CPAN
BUILD_REQUIRES => {
'Test::More' => '0',
},
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 => {
bin/clidriver.pl view on Meta::CPAN
# vim: tabstop=4 expandtab
=head1 NAME
clidriver.pl - utilities for CLI::Driver
=cut
###### PACKAGES ######
use Modern::Perl;
use English;
use CLI::Driver;
###### CONSTANTS ######
use constant DIST_NAME => 'CLI-Driver';
###### MAIN ######
$OUTPUT_AUTOFLUSH = 1;
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');
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;
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
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';
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;
#########################################################################################
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';
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';
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');
share/templates/app-sharedir.pl view on Meta::CPAN
- add [ShareDir] to your dist.ini
- ExtUtils::MakeMaker users:
- add EXE_FILES => ['bin/yournewcliname.pl'] to your Makefile.PL
- refer to File::ShareDir docs for remaining config
=cut
###### PACKAGES ######
use Modern::Perl;
use English;
use CLI::Driver;
###### CONSTANTS ######
# TODO: change to your distribution name (using hyphens)
use constant DIST_NAME => 'YOUR-DIST-NAME';
# TODO: change to your cli-driver filename IF it differs
use constant CLI_DRIVER_FILE => 'cli-driver.yml';
share/templates/app.pl view on Meta::CPAN
# vim: tabstop=4 expandtab
=head1 NAME
app.pl - a CLI::Driver basic example
=cut
###### PACKAGES ######
use Modern::Perl;
use English;
use CLI::Driver;
###### CONSTANTS ######
# TODO: change to your distribution name (using hyphens)
use constant DIST_NAME => 'YOUR-DIST-NAME';
# TODO: change to your cli-driver filename IF it differs
use constant CLI_DRIVER_FILE => 'cli-driver.yml';
t/01-test1.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/02-test2.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/03-test3.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/04-test4.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/05-test5.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/06-test6.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/07-test7.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/08-test8.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/09-test9.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/10-test10.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/11-test11.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/11-use-argv-map.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/12-test12.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######
t/13-test13.t view on Meta::CPAN
#!/usr/bin/env perl
# vim: tabstop=4 expandtab
###### PACKAGES ######
use Modern::Perl;
use Data::Printer alias => 'pdump';
use CLI::Driver;
use Test::More;
use Getopt::Long;
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');
Getopt::Long::Configure('no_auto_abbrev');
###### CONSTANTS ######