aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xtool/redmine-backporter.rb3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 70eb93bcff..dc2a45f2d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 27 16:04:19 2015 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/redmine-backporter.rb: added `!` command.
+
Tue Jan 27 15:58:23 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: added history feature for platforms which
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 13a9ec8851..c50d2a379e 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -486,6 +486,8 @@ eom
Net::HTTP.start(uri.host, uri.port, http_options) do |http|
show_last_journal(http, uri)
end
+ when /\A!\s*(.*)\s*\z/
+ system($1)
when ''
when nil, 'quit', 'exit'
exit
@@ -497,6 +499,7 @@ eom
puts 'done [TICKET] [-- NOTE]'.color(bold: true) + ' set Backport field of the TICKET to DONE'
puts 'close [TICKET] '.color(bold: true) + ' close the TICKET'
puts 'last [TICKET] '.color(bold: true) + ' show the last journal of the TICKET'
+ puts '! COMMAND '.color(bold: true) + ' execute COMMAND'
else
puts "error #{l.inspect}"
end