| 1 | package Boxer::CLI::Command::About; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | =encoding UTF-8 | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | =cut | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 3 | ▶ | use v5.20; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 3 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 3 | ▶ | use Role::Commons -all; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 3 | ▶ | use feature 'signatures'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 3 | ▶ | use namespace::autoclean 0.16; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 3 | ▶ | use Boxer::CLI -command; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 3 | ▶ | use strictures 2; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 3 | ▶ | no warnings "experimental::signatures"; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | =head1 VERSION | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | Version v1.4.3 | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | =cut | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 3 | our $VERSION = "v1.4.3"; | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 3 | ▶ | use constant { | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 27 | 3 | abstract => q[list which boxer plugins are installed], | |||||||||||||||||||
| 28 | usage_desc => q[%c about], | ||||||||||||||||||||
| 29 | 3 | }; | |||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 3 | ▶ | use constant FORMAT_STR => "%-36s%10s %s\n"; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | sub command_names | ||||||||||||||||||||
| 34 | 5 | ▶ | { | ||||||||||||||||||
|
Subroutine
command_names: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 35 | 5 | qw( | |||||||||||||||||||
| 36 | about | ||||||||||||||||||||
| 37 | credits | ||||||||||||||||||||
| 38 | ); | ||||||||||||||||||||
| 39 | } | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | sub opt_spec | ||||||||||||||||||||
| 42 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 43 | 0 | return; | |||||||||||||||||||
| 44 | } | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 0 | ▶ | sub execute ( $self, $opt, $args ) | ||||||||||||||||||
|
Subroutine
execute: not called CC=6 SCAR=37.4
Pod
documented
| |||||||||||||||||||||
| 47 | { | ||||||||||||||||||||
| 48 | 0 | my $auth = $self->app->can('AUTHORITY'); | |||||||||||||||||||
| 49 | 0 | ▶ | printf( | ||||||||||||||||||
|
Branch: 1 branch
Condition0%0/2
$self->app->$auth or "???"
MC/DC0%0/1
$self->app->$auth or "???"
$self->app->$auth
Truth table0%0/2
A
A= $self->app->$auth
| |||||||||||||||||||||
| 50 | FORMAT_STR, | ||||||||||||||||||||
| 51 | ref( $self->app ), | ||||||||||||||||||||
| 52 | $self->app->VERSION, | ||||||||||||||||||||
| 53 | $auth ? $self->app->$auth || '???' : '???', | ||||||||||||||||||||
| 54 | ); | ||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | 0 | foreach my $cmd ( sort $self->app->command_plugins ) { | |||||||||||||||||||
| 57 | 0 | my $auth = $cmd->can('AUTHORITY'); | |||||||||||||||||||
| 58 | 0 | ▶ | printf( | ||||||||||||||||||
|
Branch: 1 branch
Condition0%0/2
$cmd->$auth or "???"
MC/DC0%0/1
$cmd->$auth or "???"
$cmd->$auth
Truth table0%0/2
A
A= $cmd->$auth
| |||||||||||||||||||||
| 59 | FORMAT_STR, | ||||||||||||||||||||
| 60 | $cmd, | ||||||||||||||||||||
| 61 | $cmd->VERSION, | ||||||||||||||||||||
| 62 | $auth ? $cmd->$auth || '???' : '???', | ||||||||||||||||||||
| 63 | ); | ||||||||||||||||||||
| 64 | } | ||||||||||||||||||||
| 65 | } | ||||||||||||||||||||
| 66 | |||||||||||||||||||||
| 67 | =head1 AUTHOR | ||||||||||||||||||||
| 68 | |||||||||||||||||||||
| 69 | Jonas Smedegaard C<< <dr@jones.dk> >>. | ||||||||||||||||||||
| 70 | |||||||||||||||||||||
| 71 | =cut | ||||||||||||||||||||
| 72 | |||||||||||||||||||||
| 73 | 3 | our $AUTHORITY = 'cpan:JONASS'; | |||||||||||||||||||
| 74 | |||||||||||||||||||||
| 75 | =head1 COPYRIGHT AND LICENCE | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | Copyright © 2013-2016 Jonas Smedegaard | ||||||||||||||||||||
| 78 | |||||||||||||||||||||
| 79 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 80 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | =head1 DISCLAIMER OF WARRANTIES | ||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED | ||||||||||||||||||||
| 85 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | ||||||||||||||||||||
| 86 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | =cut | ||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | 3 | 1; | |||||||||||||||||||