| 1 | package CLI::Framework::Command::Dump; | ||
| 2 | use base qw( CLI::Framework::Command::Meta ); | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use Data::Dumper; | ||
| 8 | |||
| 9 | our $VERSION = 0.01; | ||
| 10 | |||
| 11 | #------- | ||
| 12 | |||
| 13 | sub usage_text { | ||
| 14 | q{ | ||
| 15 | dump: print a dump of the application object using Data::Dumper | ||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | sub run { | ||
| 20 | my ($self, $opts, @args) = @_; | ||
| 21 | |||
| 22 | my $result = Dumper($self->get_app()) . "\n"; | ||
| 23 | return $result; | ||
| 24 | } | ||
| 25 | |||
| 26 | #------- | ||
| 27 | 1; | ||
| 28 | |||
| 29 | __END__ |