App::ChainedWrapper to sub applications in the Git fashion - No modification to your scripts, modules | |
Download |
App::Chained Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Nadim Khemir
- Publisher web site:
- http://search.cpan.org/~nkh/
App::Chained Tags
App::Chained Description
Wrapper to sub applications in the Git fashion - No modification to your scripts, modules App::Chained is a Perl module that implements an application front-end to other applications. As the git command is a front end to many git-* sub commands.SYNOPSISA complete example can be found in test_wrapper.p test_application test_module.pm test_templatel in the distribution. package App::Chained::Test ; use parent 'App::Chained' ; our $VERSION = '0.03' ; =head1 THIS WRAPPER DOCUMENTATION This will be automatically extracted as we set the B fields to B =cut sub run { my ($invocant, @setup_data) = @_ ; my $chained_app = App::Chained->new ( help => \&App::Chained::get_help_from_pod, version => $VERSION, apropos => undef, faq => undef, getopt_data => [] ; sub_apps => { test_application => { description => 'executable', run => sub { my ($self, $command, $arguments) = @_ ; system './test_application ' . join(' ', @{$arguments}) ; }, ... }, }, @setup_data, ) ; bless $chained_app, $class ; $chained_app->parse_command_line() ; $chained_app->SUPER::run() ; } #--------------------------------------------------------------------------------- package main ; App::Chained::Test->run(command_line_arguments => \@ARGV) ; Requirements: · Perl
App::Chained Related Software