| 1 | package CLI::Framework::Command::Console; | ||
| 2 | use base qw( CLI::Framework::Command::Meta ); | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | our $VERSION = 0.01; | ||
| 8 | |||
| 9 | #------- | ||
| 10 | |||
| 11 | sub usage_text { | ||
| 12 | q{ | ||
| 13 | console: invoke interactive command console | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | sub run { | ||
| 18 | my ($self, $opts, @args) = @_; | ||
| 19 | |||
| 20 | my $app = $self->get_app(); # metacommand is app-aware | ||
| 21 | |||
| 22 | $app->run_interactive(); | ||
| 23 | |||
| 24 | return; | ||
| 25 | } | ||
| 26 | |||
| 27 | #------- | ||
| 28 | 1; | ||
| 29 | |||
| 30 | __END__ |