Codebase list libmoosex-app-perl / e7fd09c
Prepare permute tests Maros Kollar 9 years ago
3 changed file(s) with 29 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2222 sub run {
2323 my ($self) = @_;
2424 print "NEW WITH A";
25 $self->initialize_command_class('Test06::CommandB')->run;
25 ref($self)->initialize_command_class('Test06::CommandB')->run;
2626 #$self->initialize_command_class('Test06::CommandB');
2727 }
2828
0 package Test06::CommandD;
1
2 use Moose;
3 use MooseX::App::Command;
4 extends qw(Test06);
5
6 option 'list' => (
7 isa => 'ArrayRef[Str]',
8 is => 'rw',
9 );
10
11 option 'hash' => (
12 isa => 'HashRef[Str]',
13 is => 'rw',
14 );
15
16 sub run {
17 my ($self) = @_;
18 use Data::Dumper;
19 {
20 local $Data::Dumper::Maxdepth = 2;
21 warn __FILE__.':line'.__LINE__.':'.Dumper($self);
22 }
23 }
24
25 1;
88 };
99 app_command_register 'command-c' => 'Test03::ExtraCommand';
1010
11 app_permute 1;
12
1113 option 'some_option' => (
1214 is => 'rw',
1315 isa => 'Bool',