blib/lib/CLI/Framework/Command/Meta.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
get_app
2.0
set_app
2.0
CRAP 2.0
1 package CLI::Framework::Command::Meta;
2 use base qw( CLI::Framework::Command );
3  
4 our $VERSION = 0.01;
5  
6 sub new {
7 my ($class, %args) = @_;
8 my $app = $args{app};
9 bless { _app => $app }, $class;
10 }
11  
12 # (metacommands know about their application (and thus, the other commands in
13 # the app))
14 sub get_app { $_[0]->{_app} }
15 sub set_app { $_[0]->{_app} = $_[1] }
16  
17 #-------
18 1;
19  
20 __END__