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

filter: Statementstmt 68.7% 11 / 16 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 42.8% 3 / 7 Podpod 50.0% 2 / 4 totaltotal 50.0% 16 / 32 CC 2 SCAR 9.7
CC
2
Cov
58%
args_from_stdin
6.0
command_names
2.0
opt_spec
2.0
CRAP 2.6
« blib/lib/App/Pinto/Command/copy.pm ↑ Summary blib/lib/App/Pinto/Command/kill.pm »
1 # ABSTRACT: update packages to latest versions
2  
3 package App::Pinto::Command::update;
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 command_names { return qw(update up) }
Subroutine command_names: not called CC=1 SCAR=6.9
Pod documented
19  
20 #-----------------------------------------------------------------------------
21  
22 0 ▶sub opt_spec {
Subroutine opt_spec: not called CC=1 SCAR=6.9
Pod documented
23 0 my ( $self, $app ) = @_;
24  
25 return (
26 0 [ 'all' => 'Update all packages in the stack' ],
27 [ 'cascade' => 'Always pick latest upstream package' ],
28 [ 'diff-style=s' => 'Set style of diff reports' ],
29 [ 'dry-run' => 'Do not commit any changes' ],
30 [ 'force' => 'Force update, even if pinned' ],
31 [ 'message|m=s' => 'Message to describe the change' ],
32 [ 'no-fail' => 'Do not fail when there is an error' ],
33 [ 'recurse!' => 'Recursively pull prereqs (negatable)' ],
34 [ 'pin' => 'Pin the packages to the stack' ],
35 [ 'roots' => 'Update all root packages in the stack' ],
36 [ 'skip-missing-prerequisite|k=s@' => 'Skip missing prereq (repeatable)' ],
37 [ 'skip-all-missing-prerequisites|K' => 'Skip all missing prereqs' ],
38 [ 'stack|s=s' => 'Update packages in this stack' ],
39 [ 'use-default-message|M' => 'Use the generated message' ],
40 [ 'with-development-prerequisites|wd' => 'Also pull prereqs for development' ],
41 );
42 }
43  
44 #------------------------------------------------------------------------------
45  
46 0 ▶sub args_attribute { return 'targets' }
Subroutine args_attribute: not called CC=1 SCAR=6.9
Pod undocumented
47  
48 #------------------------------------------------------------------------------
49  
50 0 ▶sub args_from_stdin { return not ($_[1]->{all} || $_[1]->{roots}) }
Subroutine args_from_stdin: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/3
$_[1]{'all'} || $_[1]{'roots'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[1]{'all'} || $_[1]{'roots'}
$_[1]{'all'} $_[1]{'roots'}
Truth table0%0/3
A || B
A= $_[1]{'all'}B= $_[1]{'roots'}
ABresult
1X1
011
000
51  
52 #------------------------------------------------------------------------------
53  
54 1 1;
55  
56 __END__
« blib/lib/App/Pinto/Command/copy.pm ↑ Summary blib/lib/App/Pinto/Command/kill.pm »