| 1 | # ABSTRACT: show some gratitude | ||||||||||
| 2 | |||||||||||
| 3 | package App::Pinto::Command::thanks; | ||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use Path::Class qw(dir); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Pod::Usage qw(pod2usage); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use base qw(App::Pinto::Command); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | #------------------------------------------------------------------------------- | ||||||||||
| 14 | |||||||||||
| 15 | 1 | our $VERSION = '0.14'; # VERSION | |||||||||
| 16 | |||||||||||
| 17 | #------------------------------------------------------------------------------- | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub execute { | ||||||||
|
Subroutine
execute: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 20 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 21 | |||||||||||
| 22 | 0 | my $path; | |||||||||
| 23 | 0 | for my $dir (@INC) { | |||||||||
| 24 | 0 | my $maybe = dir($dir)->file(qw(Pinto Manual Thanks.pod)); | |||||||||
| 25 | 0 | ▶ | do { $path = $maybe->stringify; last } if -f $maybe; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | die "Could not find the Thanks pod.\n" if not $path; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | pod2usage( | |||||||||
| 31 | -verbose => 99, | ||||||||||
| 32 | -sections => 'THANK YOU', | ||||||||||
| 33 | -input => $path, | ||||||||||
| 34 | -exitval => 0, | ||||||||||
| 35 | ); | ||||||||||
| 36 | |||||||||||
| 37 | 0 | return 1; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | #------------------------------------------------------------------------------- | ||||||||||
| 41 | 1 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||