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   2596 use strict;
  5         8  
  5         119  
2 5     5   21 use warnings;
  5         15  
  5         196  
3              
4             package Footprintless::App::Command::log;
5             $Footprintless::App::Command::log::VERSION = '1.28';
6             # ABSTRACT: Provides access to log files.
7             # PODNAME: Footprintless::App::Command::log
8              
9 5     5   21 use parent qw(Footprintless::App::ActionCommand);
  5         9  
  5         19  
10              
11             sub _actions {
12             return (
13 4     4   20 '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 14 return "fpl log LOG_COORD ACTION %o";
27             }
28              
29             1;
30              
31             __END__