JobLog/Command/today.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
execute
2.0
usage_desc
2.0
abstract
2.0
CRAP 2.0
1 package App::JobLog::Command::today;
2 $App::JobLog::Command::today::VERSION = '1.042';
3 # ABSTRACT: show what has happened today
4  
5 use App::JobLog -command;
6 use Modern::Perl;
7 use App::JobLog::Command::summary;
8 use autouse 'App::JobLog::Time' => qw(now);
9  
10 use constant FORMAT => '%l:%M:%S %p on %A, %B %d, %Y';
11  
12 sub execute {
13 my ( $self, $opt, $args ) = @_;
14 $self->simple_command_check($args);
15  
16 # display everything done today
17 App::JobLog::Command::summary->execute( $opt, ['today'] );
18 }
19  
20 sub usage_desc { '%c ' . __PACKAGE__->name . ' %o' }
21  
22 sub abstract { 'what has happened today' }
23  
24 sub full_description {
25 <<END;
26 List what has happened today.
27  
28 This is basically a specialized variant of the @{[App::JobLog::Command::summary->name]} command.
29 END
30 }
31  
32 1;
33  
34 __END__