line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gruntmaster::App::Command; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
798
|
use 5.014000; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
6
|
1
|
|
|
1
|
|
8
|
use re '/s'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
106
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '6000.001'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
452
|
use parent qw/App::Cmd::Command/; |
|
1
|
|
|
|
|
278
|
|
|
1
|
|
|
|
|
6
|
|
11
|
1
|
|
|
1
|
|
628
|
use Pod::Usage; |
|
1
|
|
|
|
|
48492
|
|
|
1
|
|
|
|
|
261
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub description { |
14
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
15
|
0
|
|
|
|
|
|
my ($file) = (ref $self) =~ s,::,/,gr; |
16
|
0
|
|
|
|
|
|
my $usage; |
17
|
0
|
|
|
|
|
|
open my $fh, '>', \$usage; ## no critic (RequireCheckedOpen) |
18
|
0
|
|
|
|
|
|
pod2usage(-input => $INC{"$file.pm"}, -output => $fh, -exitval => 'NOEXIT', -verbose => 99, -sections => [qw/SYNOPSIS DESCRIPTION/]); |
19
|
0
|
|
|
|
|
|
close $fh; ## no critic (RequireCheckedClose) |
20
|
0
|
|
|
|
|
|
$usage =~ s/Usage:/Usage examples:/; |
21
|
0
|
|
|
|
|
|
1 while chomp $usage; |
22
|
0
|
|
|
|
|
|
$usage |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |