| 1 | package App::DuckPAN::Cmd::Check; | ||
| 2 | 1 | our $AUTHORITY = 'cpan:DDG'; | |
| 3 | # ABSTRACT: Command for checking the requirements | ||
| 4 | 1 | $App::DuckPAN::Cmd::Check::VERSION = '1021'; | |
| 5 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | with qw( App::DuckPAN::Cmd ); | |
| 7 | |||
| 8 | 1 | ▶ | use MooX::Options protect_argv => 0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 0 | ▶ | sub run { |
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 11 | 0 | my ($self) = @_; | |
| 12 | |||
| 13 | 0 | $self->app->empty_cache; | |
| 14 | 0 | $self->app->check_requirements; # Exits on missing requirements. | |
| 15 | 0 | $self->app->emit_info("EVERYTHING OK! You can now go hacking! :)"); | |
| 16 | 0 | exit 0; | |
| 17 | } | ||
| 18 | |||
| 19 | 1 | 1; | |
| 20 | |||
| 21 | __END__ | ||