bin/d3 in depot3-3.0.9 vs bin/d3 in depot3-3.0.11
- old
+ new
@@ -241,10 +241,13 @@
D3::Client.freeze_receipts @targets
when :thaw then
D3::Client.thaw_receipts @targets
+ when :forget then
+ D3::Client.forget_receipts @targets
+
when :list_available then
D3::Client.list_available @options.force
when :list_installed then
D3::Client.list_installed
@@ -259,10 +262,13 @@
D3::Client.list_frozen
when :list_puppies then
D3::Client.list_pending_puppies
+ when :list_queue then
+ D3::Client.list_pending_puppies
+
when :list_details then
D3::Client.list_details @targets
when :list_files then
D3::Client.list_files @targets
@@ -303,11 +309,21 @@
end # class App
############
# Do it
############
-stty_save = `stty -g`.chomp
-trap("SIGINT") { puts "\nCancelled! Woot!" ; system('stty', stty_save); exit 0 }
+
+
+### save terminal state incase user interrupts during readline or less
+if $stdin.tty?
+ stty_save = `stty -g`.chomp
+ trap("SIGINT") do
+ puts "\nCancelled! Woot!"
+ system('stty', stty_save)
+ exit 0
+ end
+end
+
begin
# if needed, set debugging even before we make the app
D3::LOG.level = :debug unless (ARGV & ["--debug", "-d"] ).empty?