OSDN Git Service
(root)
/
osdn-codes
/
osdn-cli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update version.
[osdn-codes/osdn-cli.git]
/
lib
/
osdn
/
cli
/
runner.rb
diff --git
a/lib/osdn/cli/runner.rb
b/lib/osdn/cli/runner.rb
index
874b01c
..
d9eeb4f
100644
(file)
--- a/
lib/osdn/cli/runner.rb
+++ b/
lib/osdn/cli/runner.rb
@@
-80,6
+80,10
@@
module OSDN
command = get_command_class(command_name).new(logger)
logger.debug "Run command #{command_name}"
begin
+ Signal.trap "INT" do
+ puts :INT
+ exit
+ end
command.run
rescue OSDNClient::ApiError => e
begin