| 1 | package CLI::Framework::Command::Meta; | ||
| 2 | 4 | ▶ | use base qw( CLI::Framework::Command ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 4 | our $VERSION = 0.01; | |
| 5 | |||
| 6 | sub new { | ||
| 7 | 3 | ▶ | my ($class, %args) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | 3 | my $app = $args{app}; | |
| 9 | 3 | bless { _app => $app }, $class; | |
| 10 | } | ||
| 11 | |||
| 12 | # (metacommands know about their application (and thus, the other commands in | ||
| 13 | # the app)) | ||
| 14 | 3 | ▶ | sub get_app { $_[0]->{_app} } |
|
Subroutine
get_app: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | 3 | ▶ | sub set_app { $_[0]->{_app} = $_[1] } |
|
Subroutine
set_app: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | |||
| 17 | #------- | ||
| 18 | 4 | 1; | |
| 19 | |||
| 20 | __END__ | ||