| 1 | package App::CSE::Command::Help; | ||||||||||
| 2 | 1 | $App::CSE::Command::Help::VERSION = '0.016'; | |||||||||
| 3 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | extends qw/App::CSE::Command/; | |||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Pod::Text; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Pod::Usage; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use Log::Log4perl; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | my $LOGGER = Log::Log4perl->get_logger(); | |||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | sub execute{ | ||||||||
|
Subroutine
execute: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 13 | 1 | my ($self) = @_; | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | unless( $self->cse()->interactive() ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1 | my $output; | |||||||||
| 18 | 1 | my $p2txt = Pod::Text->new(); | |||||||||
| 19 | 1 | $p2txt->output_string(\$output); | |||||||||
| 20 | 1 | $p2txt->parse_file(__FILE__); | |||||||||
| 21 | 1 | $LOGGER->info("This is cse version ".$self->cse()->version()); | |||||||||
| 22 | 1 | $LOGGER->info($output); | |||||||||
| 23 | }else{ | ||||||||||
| 24 | 0 | Pod::Usage::pod2usage( -input => __FILE__ , -verbose => 2, | |||||||||
| 25 | -message => 'This is cse version '.$self->cse()->version() | ||||||||||
| 26 | ); | ||||||||||
| 27 | } | ||||||||||
| 28 | 1 | return 1; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | __PACKAGE__->meta->make_immutable(); | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||