blib/lib/YA/CLI/ErrorHandler.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 10 | 60.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 4 | 50.0 |
pod | 0 | 2 | 0.0 |
total | 8 | 16 | 50.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package YA::CLI::ErrorHandler; | ||||||
2 | our $VERSION = '0.004'; | ||||||
3 | 2 | 2 | 15 | use Moo; | |||
2 | 4 | ||||||
2 | 17 | ||||||
4 | 2 | 2 | 793 | use namespace::autoclean; | |||
2 | 5 | ||||||
2 | 24 | ||||||
5 | |||||||
6 | # ABSTRACT: The default action handler | ||||||
7 | |||||||
8 | with 'YA::CLI::ActionRole'; | ||||||
9 | |||||||
10 | 0 | 0 | 0 | sub action { 'default' } | |||
11 | |||||||
12 | sub run { | ||||||
13 | 0 | 0 | 0 | my $self = shift; | |||
14 | 0 | my $h = $self->as_help(1, $self->message); | |||||
15 | 0 | return $h->run; | |||||
16 | } | ||||||
17 | |||||||
18 | __PACKAGE__->meta->make_immutable; | ||||||
19 | |||||||
20 | __END__ |