line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::BitBucketCli::Command::Branches; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2018-06-07 08:23:20 |
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
5
|
|
|
|
|
|
|
# $Id$ |
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
798
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
10
|
1
|
|
|
1
|
|
272
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
11
|
1
|
|
|
1
|
|
4
|
use Carp; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
45
|
|
12
|
1
|
|
|
1
|
|
5
|
use Data::Dumper qw/Dumper/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
13
|
1
|
|
|
1
|
|
6
|
use English qw/ -no_match_vars /; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
extends 'App::BitBucketCli'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = 0.009; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub options { |
20
|
0
|
|
|
0
|
1
|
|
return [qw/ |
21
|
|
|
|
|
|
|
colors|c=s% |
22
|
|
|
|
|
|
|
force|f! |
23
|
|
|
|
|
|
|
long|l |
24
|
|
|
|
|
|
|
project|p=s |
25
|
|
|
|
|
|
|
recipient|R=s |
26
|
|
|
|
|
|
|
regexp|R |
27
|
|
|
|
|
|
|
remote|m=s |
28
|
|
|
|
|
|
|
repository|r=s |
29
|
|
|
|
|
|
|
sleep|s=i |
30
|
|
|
|
|
|
|
/] |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub branches { |
34
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my @pull_requests = sort { |
37
|
0
|
|
|
|
|
|
lc $a->id cmp lc $b->id; |
38
|
|
|
|
|
|
|
} |
39
|
0
|
|
|
|
|
|
$self->core->branches($self->opt->{project}, $self->opt->{repository}); |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
for my $pull_request (@pull_requests) { |
42
|
0
|
|
|
|
|
|
print $pull_request->id . ' - ' . $pull_request->title . "\n"; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
App::BitBucketCli::Command::Branches - Show branches of a repository |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This documentation refers to App::BitBucketCli::Command::Branches version 0.009 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SYNOPSIS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
bb-cli branch [options] |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
OPTIONS: |
63
|
|
|
|
|
|
|
-c --colors[=]str Change colours used specified as key=value |
64
|
|
|
|
|
|
|
eg --colors disabled=grey22 |
65
|
|
|
|
|
|
|
current colour names aborted, disabled and notbuilt |
66
|
|
|
|
|
|
|
-f --force Force action |
67
|
|
|
|
|
|
|
-l --long Show long form data if possible |
68
|
|
|
|
|
|
|
-p --project[=]str |
69
|
|
|
|
|
|
|
For commands that need a project name this is the name to use |
70
|
|
|
|
|
|
|
-R --recipient[=]str |
71
|
|
|
|
|
|
|
?? |
72
|
|
|
|
|
|
|
-R --regexp[=]str ?? |
73
|
|
|
|
|
|
|
-m --remote[=]str ?? |
74
|
|
|
|
|
|
|
-r --repository[=]str |
75
|
|
|
|
|
|
|
For commands that work on repositories this contains the repository |
76
|
|
|
|
|
|
|
-s --sleep[=]seconds |
77
|
|
|
|
|
|
|
?? |
78
|
|
|
|
|
|
|
-t --test ?? |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
CONFIGURATION: |
81
|
|
|
|
|
|
|
-h --host[=]str Specify the Stash/Bitbucket Servier host name |
82
|
|
|
|
|
|
|
-P --password[=]str |
83
|
|
|
|
|
|
|
The password to connect to the server as |
84
|
|
|
|
|
|
|
-u --username[=]str |
85
|
|
|
|
|
|
|
The username to connect to the server as |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
-v --verbose Show more detailed option |
88
|
|
|
|
|
|
|
--version Prints the version information |
89
|
|
|
|
|
|
|
--help Prints this help information |
90
|
|
|
|
|
|
|
--man Prints the full documentation for bb-cli |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 DESCRIPTION |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 C<options ()> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Returns the command line options |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 C<branches ()> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
There are no known bugs in this module. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Patches are welcome. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 AUTHOR |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Copyright (c) 2018 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
125
|
|
|
|
|
|
|
All rights reserved. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
128
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
129
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
130
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
131
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=cut |