blib/lib/App/Pinto/Command/pin.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/App/Pinto/Command/add.pm ↑ Summary blib/lib/App/Pinto/Command/pull.pm »
1 # ABSTRACT: force a package to stay in a stack
2  
3 package App::Pinto::Command::pin;
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 [ 'diff-style=s' => 'Set style of diff reports' ],
23 [ 'dry-run' => 'Do not commit any changes' ],
24 [ 'message|m=s' => 'Message to describe the change' ],
25 [ 'stack|s=s' => 'Pin targets to this stack' ],
26 [ 'use-default-message|M' => 'Use the generated message' ],
27 );
28 }
29  
30 #------------------------------------------------------------------------------
31  
32 0 ▶sub args_attribute { return 'targets' }
Subroutine args_attribute: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 #------------------------------------------------------------------------------
35  
36 0 ▶sub args_from_stdin { return 1 }
Subroutine args_from_stdin: not called CC=1 SCAR=6.9
Pod undocumented
37  
38 #------------------------------------------------------------------------------
39  
40 1 1;
41  
42 __END__
« blib/lib/App/Pinto/Command/add.pm ↑ Summary blib/lib/App/Pinto/Command/pull.pm »