blib/lib/App/DistUtils.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 69.2% 18 / 26 CC 1 SCAR 3.4
CC
1
Cov
71%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1 package App::DistUtils;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 1 our $DATE = '2023-05-20'; # DATE
9 1 our $DIST = 'App-DistUtils'; # DIST
10 1 our $VERSION = '0.154'; # VERSION
11  
12 our %dist_arg_single = (
13 dist => {
14 summary => 'Distribution name, defaults to "this dist"',
15 schema => 'perl::distname::default_this_dist*',
16 description => <<'_',
17  
18 See the <prog:this-dist> utility for how to guess for "this distribution".
19  
20 _
21 pos => 0,
22 0 ▶ completion => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 require Complete::Dist;
24 0 my %args = @_;
25 0 Complete::Dist::complete_dist(word=>$args{word});
26 },
27 },
28 1 );
29  
30 our %dist_arg_multiple = (
31 dist => {
32 schema => ['array*', of=>'perl::distname*', min_len=>1],
33 req => 1,
34 pos => 0,
35 greedy => 1,
36 0 ▶ element_completion => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
37 0 require Complete::Dist;
38 0 my %args = @_;
39 0 Complete::Dist::complete_dist(word=>$args{word});
40 },
41 },
42 1 );
43  
44 1 1;
45 # ABSTRACT: Collection of utilities related to Perl distributions
46  
47 __END__
↑ Summary