| 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'}
MC/DC0%0/2
$_[1]{'all'} || $_[1]{'roots'}
$_[1]{'all'}
$_[1]{'roots'}
Truth table0%0/3
A || B
A= $_[1]{'all'}B= $_[1]{'roots'}
| |||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | #------------------------------------------------------------------------------ | ||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 1 | 1; | |||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | __END__ | ||||||||||||||||||||