File Coverage

blib/lib/App/JobLog/Command/today.pm
Criterion Covered Total %
statement 15 22 68.1
branch n/a
condition n/a
subroutine 5 9 55.5
pod 3 4 75.0
total 23 35 65.7


line stmt bran cond sub pod time code
1             package App::JobLog::Command::today;
2             $App::JobLog::Command::today::VERSION = '1.039';
3             # ABSTRACT: show what has happened today
4              
5 2     2   1562 use App::JobLog -command;
  2         4  
  2         14  
6 2     2   854 use Modern::Perl;
  2         4  
  2         11  
7 2     2   220 use App::JobLog::Command::summary;
  2         4  
  2         29  
8 2     2   53 use autouse 'App::JobLog::Time' => qw(now);
  2         5  
  2         11  
9              
10 2     2   162 use constant FORMAT => '%l:%M:%S %p on %A, %B %d, %Y';
  2         4  
  2         534  
11              
12             sub execute {
13 0     0 1   my ( $self, $opt, $args ) = @_;
14 0           $self->simple_command_check($args);
15              
16             # display everything done today
17 0           App::JobLog::Command::summary->execute( $opt, ['today'] );
18             }
19              
20 0     0 1   sub usage_desc { '%c ' . __PACKAGE__->name . ' %o' }
21              
22 0     0 1   sub abstract { 'what has happened today' }
23              
24             sub full_description {
25 0     0 0   <
26             List what has happened today.
27              
28 0           This is basically a specialized variant of the @{[App::JobLog::Command::summary->name]} command.
29             END
30             }
31              
32             1;
33              
34             __END__