| 1 | package Perl::Achievements::Command; | ||||||||||
| 2 | 4 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 4 | $Perl::Achievements::Command::AUTHORITY = 'cpan:YANICK'; | |||||||||
| 4 | } | ||||||||||
| 5 | { | ||||||||||
| 6 | 4 | $Perl::Achievements::Command::VERSION = '0.4.0'; | |||||||||
| 7 | } | ||||||||||
| 8 | |||||||||||
| 9 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 4 | ▶ | use MooseX::SemiAffordanceAccessor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 4 | ▶ | use Path::Class qw/ dir file /; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 4 | ▶ | use File::HomeDir; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 4 | extends qw/ | |||||||||
| 19 | MooseX::App::Cmd::Command | ||||||||||
| 20 | Perl::Achievements | ||||||||||
| 21 | /; | ||||||||||
| 22 | |||||||||||
| 23 | 4 | has verbose => ( | |||||||||
| 24 | isa => 'Bool', | ||||||||||
| 25 | is => 'ro', | ||||||||||
| 26 | ); | ||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | sub BUILDARGS { | ||||||||
|
Subroutine
BUILDARGS: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 29 | 0 | my $self = shift; | |||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | my %args = @_ == 1 ? %{$_[0]} : @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | my @args = %args; | |||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | unshift @args, debug => 1, log_to_stdout => 1 if $args{verbose}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | |||||||||||
| 37 | 0 | $self->SUPER::BUILDARGS( @args ); | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | |||||||||||
| 41 | 4 | 1; | |||||||||
| 42 | |||||||||||
| 43 | |||||||||||
| 44 | __END__ | ||||||||||