CLI::Framework::Command::Dump - CLIF built-in command to show the internal


CLI-Framework documentation Contained in the CLI-Framework distribution.

Index


Code Index:

NAME

Top

CLI::Framework::Command::Dump - CLIF built-in command to show the internal state of a running application

SEE ALSO

Top

CLI::Framework::Command


CLI-Framework documentation Contained in the CLI-Framework distribution.

package CLI::Framework::Command::Dump;
use base qw( CLI::Framework::Command::Meta );

use strict;
use warnings;

use Data::Dumper;

our $VERSION = 0.01;

#-------

sub usage_text {
    q{
        dump: print a dump of the application object using Data::Dumper
        }
}

sub run {
    my ($self, $opts, @args) = @_;

    my $result = Dumper($self->get_app()) . "\n";
    return $result;
}

#-------
1;

__END__