line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
2141
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
123
|
|
2
|
5
|
|
|
5
|
|
21
|
use warnings; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
189
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Footprintless::App::Command::log; |
5
|
|
|
|
|
|
|
$Footprintless::App::Command::log::VERSION = '1.26'; |
6
|
|
|
|
|
|
|
# ABSTRACT: Provides access to log files. |
7
|
|
|
|
|
|
|
# PODNAME: Footprintless::App::Command::log |
8
|
|
|
|
|
|
|
|
9
|
5
|
|
|
5
|
|
23
|
use parent qw(Footprintless::App::ActionCommand); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
26
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub _actions { |
12
|
|
|
|
|
|
|
return ( |
13
|
4
|
|
|
4
|
|
15
|
'cat' => 'Footprintless::App::Command::log::cat', |
14
|
|
|
|
|
|
|
'follow' => 'Footprintless::App::Command::log::follow', |
15
|
|
|
|
|
|
|
'grep' => 'Footprintless::App::Command::log::grep', |
16
|
|
|
|
|
|
|
'head' => 'Footprintless::App::Command::log::head', |
17
|
|
|
|
|
|
|
'tail' => 'Footprintless::App::Command::log::tail' |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _default_action { |
22
|
0
|
|
|
0
|
|
0
|
return 'follow'; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub usage_desc { |
26
|
4
|
|
|
4
|
1
|
16
|
return "fpl log LOG_COORD ACTION %o"; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |