blib/lib/App/Pinto/Command/add.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 33.3% 1 / 3 totaltotal 62.5% 15 / 24 CC 1 SCAR 4.1
CC
1
Cov
73%
opt_spec
2.0
args_attribute
2.0
args_from_stdin
2.0
CRAP 1.5
« blib/lib/Pinto/DifferenceEntry.pm ↑ Summary blib/lib/App/Pinto/Command/pin.pm »
1 package App::Pinto::Command::add;
2  
3 # ABSTRACT: add local archives to the repository
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 #------------------------------------------------------------------------------
9  
10 1 ▶use base 'App::Pinto::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 #------------------------------------------------------------------------------
13  
14 1 our $VERSION = '0.14'; # VERSION
15  
16 #-----------------------------------------------------------------------------
17  
18 0 ▶sub opt_spec {
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod documented
19 0 my ( $self, $app ) = @_;
20  
21 return (
22 0 [ 'author=s' => 'The ID of the archive author' ],
23 [ 'cascade' => 'Always pick latest upstream package' ],
24 [ 'diff-style=s' => 'Set style of diff reports' ],
25 [ 'dry-run' => 'Do not commit any changes' ],
26 [ 'message|m=s' => 'Message to describe the change' ],
27 [ 'no-fail' => 'Do not fail when there is an error' ],
28 [ 'no-index|x=s@' => 'Do not index matching packages' ],
29 [ 'recurse!' => 'Recursively pull prereqs (negatable)' ],
30 [ 'pin' => 'Pin packages to the stack' ],
31 [ 'skip-missing-prerequisite|k=s@' => 'Skip missing prereq (repeatable)' ],
32 [ 'skip-all-missing-prerequisites|K' => 'Skip all missing prereqs' ],
33 [ 'stack|s=s' => 'Put packages into this stack' ],
34 [ 'use-default-message|M' => 'Use the generated message' ],
35 [ 'with-development-prerequisites|wd' => 'Also pull prereqs for development' ],
36 );
37 }
38  
39 #------------------------------------------------------------------------------
40  
41 0 ▶sub args_attribute { return 'archives' }
Subroutine args_attribute: not called CC=1 SCAR=6.9
Pod undocumented
42  
43 #------------------------------------------------------------------------------
44  
45 0 ▶sub args_from_stdin { return 1 }
Subroutine args_from_stdin: not called CC=1 SCAR=6.9
Pod undocumented
46  
47 #------------------------------------------------------------------------------
48  
49 1 1;
50  
51 __END__
« blib/lib/Pinto/DifferenceEntry.pm ↑ Summary blib/lib/App/Pinto/Command/pin.pm »