File Coverage

blib/lib/Footprintless/App/Command/log.pm
Criterion Covered Total %
statement 11 12 91.6
branch n/a
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 17 19 89.4


line stmt bran cond sub pod time code
1 5     5   2812 use strict;
  5         10  
  5         127  
2 5     5   20 use warnings;
  5         9  
  5         200  
3              
4             package Footprintless::App::Command::log;
5             $Footprintless::App::Command::log::VERSION = '1.29';
6             # ABSTRACT: Provides access to log files.
7             # PODNAME: Footprintless::App::Command::log
8              
9 5     5   22 use parent qw(Footprintless::App::ActionCommand);
  5         11  
  5         18  
10              
11             sub _actions {
12             return (
13 4     4   19 '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 15 return "fpl log LOG_COORD ACTION %o";
27             }
28              
29             1;
30              
31             __END__