| 1 | package App::BambooCli::Command; | ||
| 2 | |||
| 3 | # Created on: 2019-06-03 12:44:38 | ||
| 4 | # Create by: Ivan Wills | ||
| 5 | # $Id$ | ||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||
| 7 | # $Revision$, $Source$, $Date$ | ||
| 8 | |||
| 9 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use Scalar::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use List::Util; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | #use List::MoreUtils; | ||
| 16 | 1 | ▶ | use Getopt::Alt; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 1 | ▶ | use Data::Dumper qw/Dumper/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 1 | ▶ | use English qw/ -no_match_vars /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 1 | our $VERSION = version->new('0.0.1'); | |
| 21 | |||
| 22 | 1 | has [qw/ defaults options /] => ( | |
| 23 | is => 'rw', | ||
| 24 | ); | ||
| 25 | |||
| 26 | 1 | has bamboo => ( | |
| 27 | is => 'rw', | ||
| 28 | required => 1, | ||
| 29 | handles => [qw/ config /], | ||
| 30 | ); | ||
| 31 | |||
| 32 | 0 | ▶ | sub get_sub_options { |
|
Subroutine
get_sub_options: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | 0 | my ($self) = @_; | |
| 34 | 0 | my $module = ref $self; | |
| 35 | 0 | my $options = eval "\$${module}::OPTIONS"; ## no critic | |
| 36 | |||
| 37 | 0 | my $opt = get_options(@$options); | |
| 38 | 0 | $self->defaults({ %{ $self->defaults }, %{ $opt } }); | |
| 39 | |||
| 40 | 0 | return $self; | |
| 41 | } | ||
| 42 | |||
| 43 | 0 | ▶ | sub auto_complete { |
|
Subroutine
auto_complete: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | 0 | my ($self) = @_; | |
| 45 | |||
| 46 | 0 | warn lc ( ref $self =~ /.*::/ ), " has no --auto-complete support\n"; | |
| 47 | 0 | return; | |
| 48 | } | ||
| 49 | |||
| 50 | 1 | 1; | |
| 51 | |||
| 52 | __END__ | ||