bl 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bl/cli.rb +22 -3
- data/lib/bl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9533918c5a6546e01dc51828a92b05b76410c6a9
|
4
|
+
data.tar.gz: 328cdb26ae5e102ba9e0f8f26cfaa0858347166e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b00f167e3f711a9459c5f8974fd258f4c3588521f752b1b312e710bf88d8d8d67e09520758cc7e094f76f4bd4152a637c3bc87cd2a4dc8eb91658e847042fe94
|
7
|
+
data.tar.gz: 7950948ff5f171da05fc7c63c22cb47a3711f13b3df46049e21b21f9cc87a9ee013e69464d0765b59713e07a25f7be83942ca49f1e5568939889c3f89ff95477
|
data/lib/bl/cli.rb
CHANGED
@@ -4,7 +4,7 @@ module Bl
|
|
4
4
|
include Bl::Requestable
|
5
5
|
include Bl::Formatting
|
6
6
|
|
7
|
-
|
7
|
+
ISSUES_PARAMS = {
|
8
8
|
projectId: :array,
|
9
9
|
issueTypeId: :array,
|
10
10
|
categoryId: :array,
|
@@ -107,12 +107,31 @@ module Bl
|
|
107
107
|
end
|
108
108
|
|
109
109
|
desc 'count', 'count issues'
|
110
|
-
options
|
110
|
+
options ISSUES_PARAMS
|
111
111
|
def count
|
112
112
|
puts client.get('issues/count', {}.merge(options)).body.count
|
113
113
|
end
|
114
114
|
|
115
|
-
desc '
|
115
|
+
desc 'issues', 'list issues'
|
116
|
+
options ISSUES_PARAMS
|
117
|
+
def issues
|
118
|
+
client.get('issues', {}.merge(options)).body.each do |i|
|
119
|
+
puts [
|
120
|
+
colorize_type(i.issueType.name, i.issueType.color),
|
121
|
+
i.issueKey,
|
122
|
+
i.summary,
|
123
|
+
colorize_priority(i.priority.id, i.priority.name),
|
124
|
+
i.created,
|
125
|
+
i.dueDate,
|
126
|
+
i.updated,
|
127
|
+
i.createdUser.name,
|
128
|
+
i.assignee&.name,
|
129
|
+
colorize_status(i.status.id, i.status.name)
|
130
|
+
].join("\t")
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
desc 'list', 'list issues by typical ways'
|
116
135
|
option :all, type: :boolean
|
117
136
|
option :unassigned, type: :boolean
|
118
137
|
option :today, type: :boolean
|
data/lib/bl/version.rb
CHANGED