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.002'; | ||||||
3 | 1 | 1 | 6 | use Moo; | |||
1 | 2 | ||||||
1 | 5 | ||||||
4 | 1 | 1 | 301 | use namespace::autoclean; | |||
1 | 2 | ||||||
1 | 13 | ||||||
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__ |