| 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__ |