P5U/Command/Whois.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 44 CC 2 SCAR 10.0
CC
2
Cov
0%
execute
6.0
BEGIN
2.0
command_names
2.0
CRAP 2.7
1 package P5U::Command::Whois;
2  
3 use 5.010;
4 use strict;
5 use utf8;
6 use P5U-command;
7  
8 BEGIN {
9 $P5U::Command::Whois::AUTHORITY = 'cpan:TOBYINK';
10 $P5U::Command::Whois::VERSION = '0.100';
11 };
12  
13 use constant {
14 abstract => q[whois for CPAN authors],
15 usage_desc => q[%c whois CPANID],
16 };
17  
18 sub command_names {qw{ whois w }}
19  
20 sub opt_spec
21 {
22 return (
23 [ 'verbose|v' => 'show extra information' ],
24 );
25 }
26  
27 sub execute
28 {
29 require P5U::Lib::Whois;
30 my ($self, $opt, $args) = @_;
31
32 while (@$args)
33 {
34 print P5U::Lib::Whois
35 -> new(cpanid => shift @$args)
36 -> report($opt->{verbose});
37 print "\n" if @$args;
38 }
39 }
40  
41 1;