sdbcli 0.1.8 → 0.1.9
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.
- data/bin/sdbcli +5 -2
- metadata +3 -3
data/bin/sdbcli
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
$LOAD_PATH << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
|
|
3
3
|
|
|
4
|
-
Version = '0.1.
|
|
4
|
+
Version = '0.1.9'
|
|
5
5
|
HISTORY_FILE = File.join((ENV['HOME'] || ENV['USERPROFILE'] || '.'), '.sdbcli_history')
|
|
6
6
|
|
|
7
7
|
require 'rubygems'
|
|
@@ -108,7 +108,10 @@ at_exit do
|
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
while buf = Readline.readline("#{region}> ", true)
|
|
111
|
-
|
|
111
|
+
if /\A\s*\Z/ =~ buf
|
|
112
|
+
Readline::HISTORY.pop
|
|
113
|
+
next
|
|
114
|
+
end
|
|
112
115
|
|
|
113
116
|
begin
|
|
114
117
|
case buf.downcase
|
metadata
CHANGED