line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::GitGot::Command::update_status; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:GENEHACK'; |
3
|
|
|
|
|
|
|
$App::GitGot::Command::update_status::VERSION = '1.336'; |
4
|
|
|
|
|
|
|
# ABSTRACT: update managed repositories then display their status |
5
|
15
|
|
|
15
|
|
6750
|
use 5.014; |
|
15
|
|
|
|
|
53
|
|
6
|
|
|
|
|
|
|
|
7
|
15
|
|
|
15
|
|
71
|
use Moo; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
81
|
|
8
|
|
|
|
|
|
|
extends 'App::GitGot::Command'; |
9
|
15
|
|
|
15
|
|
4252
|
use namespace::autoclean; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
80
|
|
10
|
|
|
|
|
|
|
|
11
|
42
|
|
|
42
|
1
|
3034
|
sub command_names { qw/ update_status upst / } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub options { |
14
|
0
|
|
|
0
|
0
|
|
my( $class , $app ) = @_; |
15
|
|
|
|
|
|
|
return ( |
16
|
0
|
|
|
|
|
|
[ 'show-branch' => 'show which branch' => { default => 0 } ] , |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _execute { |
21
|
0
|
|
|
0
|
|
|
my ( $self, $opt, $args ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
say "UPDATE"; |
24
|
0
|
|
|
|
|
|
$self->_update( $self->active_repos ); |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
say "\nSTATUS"; |
27
|
0
|
|
|
|
|
|
$self->_status( $self->active_repos ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
## FIXME docs |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |