| 1 | # ABSTRACT: show available stacks | ||||||||||
| 2 | |||||||||||
| 3 | package App::Pinto::Command::stacks; | ||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use Pinto::Util qw(interpolate); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | #----------------------------------------------------------------------------- | ||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use base 'App::Pinto::Command'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | #------------------------------------------------------------------------------ | ||||||||||
| 15 | |||||||||||
| 16 | 1 | our $VERSION = '0.14'; # VERSION | |||||||||
| 17 | |||||||||||
| 18 | #------------------------------------------------------------------------------ | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub opt_spec { | ||||||||
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 0 | my ( $self, $app ) = @_; | |||||||||
| 22 | |||||||||||
| 23 | 0 | return ( [ 'format=s' => 'Format of the listing (See POD for details)' ], ); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | #------------------------------------------------------------------------------ | ||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | sub validate_args { | ||||||||
|
Subroutine
validate_args: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 29 | 0 | my ( $self, $opts, $args ) = @_; | |||||||||
| 30 | |||||||||||
| 31 | $self->usage_error('No arguments are allowed') | ||||||||||
| 32 | 0 | ▶ | if @{$args}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | |||||||||||
| 34 | $opts->{format} = interpolate( $opts->{format} ) | ||||||||||
| 35 | 0 | ▶ | if exists $opts->{format}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | |||||||||||
| 37 | 0 | return 1; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | #------------------------------------------------------------------------------ | ||||||||||
| 41 | 1 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||