bl 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bl/cli.rb +18 -0
- 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: 3f0b7880c7b13e2ce3d30fd3516293989c1446b8
|
4
|
+
data.tar.gz: 355646a62991653938cef32ef6a0facdcb6e43fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da6d2a6ead0b249f43b967f17c900954c8628d0c45d4a2bbcbb8125a69d50dbf4e6ab53c3a7f23370dbe98590b8b8a21caa98220a24ff34eaa9bbc54257a4a02
|
7
|
+
data.tar.gz: 21c6b8f48493fa867541afdccd05fbcade7ebd6d1b18acb19e12d64d6c1d78aa1bac0a1eecc49905517ce4df7fd34e6a3a294a3db09eadad00df665cf4c2dfc7
|
data/lib/bl/cli.rb
CHANGED
@@ -201,6 +201,24 @@ module Bl
|
|
201
201
|
end
|
202
202
|
end
|
203
203
|
|
204
|
+
desc 'edit KEY', "edit issues' description by $EDITOR"
|
205
|
+
def edit(key)
|
206
|
+
issue_description = client.get("issues/#{key}").body.description
|
207
|
+
file = Tempfile.new
|
208
|
+
file.puts(issue_description)
|
209
|
+
file.close
|
210
|
+
begin
|
211
|
+
file.open
|
212
|
+
system("$EDITOR #{file.path}")
|
213
|
+
new_content = file.read
|
214
|
+
client.patch("issues/#{key}", description: new_content)
|
215
|
+
puts "issue #{key} updated."
|
216
|
+
ensure
|
217
|
+
file.close
|
218
|
+
file.unlink
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
204
222
|
desc 'statuses', 'list statuses'
|
205
223
|
def statuses
|
206
224
|
client.get('statuses').body.each do |s|
|
data/lib/bl/version.rb
CHANGED