blib/lib/App/PlUtils.pm

filter: Statementstmt 60.8% 14 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod n/a totaltotal 58.6% 17 / 29 CC 1 SCAR 4.1
CC
1
Cov
61%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.5
↑ Summary
1 package App::PlUtils;
2  
3 1 our $DATE = '2020-04-29'; # DATE
4 1 our $VERSION = '0.122'; # VERSION
5  
6 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 our $arg_file_single = {
11 summary => 'Perl script',
12 description => <<'_',
13  
14 For convenience, if filename does not contain path separator, it will first be
15 searched in the current directory, then in `PATH` (using `File::Which`).
16  
17 _
18 schema => 'filename*',
19 req => 1,
20 pos => 0,
21 0 ▶ completion => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 0 require Complete::Program;
23 0 my %args = @_;
24 0 Complete::Program::complete_program(word=>$args{word});
25 },
26 1 };
27  
28 our $arg_file_multiple = {
29 summary => 'Perl script',
30 description => <<'_',
31  
32 For convenience, if filename does not contain path separator, it will first be
33 searched in the current directory, then in `PATH` (using `File::Which`).
34  
35 _
36 schema => ['array*', of=>'filename*', min_len=>1],
37 req => 1,
38 pos => 0,
39 greedy => 1,
40 0 ▶ element_completion => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 0 require Complete::Program;
42 0 my %args = @_;
43 0 Complete::Program::complete_program(word=>$args{word});
44 },
45 1 };
46  
47 our $arg_module_single = {
48 schema => 'perl::modname*',
49 0 ▶ completion => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
50 0 require Complete::Module;
51 0 my %args = @_;
52 0 Complete::Module::complete_module(word=>$args{word});
53 },
54 1 cmdline_aliases => {m=>{}},
55 };
56  
57 1 1;
58 # ABSTRACT: Command-line utilities related to Perl scripts
59  
60 __END__
↑ Summary