File: Dump.pm

package info (click to toggle)
libcli-framework-perl 0.05-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 456 kB
  • sloc: perl: 2,168; sql: 18; sh: 3; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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__

=pod

=head1 NAME

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

=head1 SEE ALSO

L<CLI::Framework::Command>

=cut