| 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__ |