lib/twurl/cli.rb in twurl-0.6.1 vs lib/twurl/cli.rb in twurl-0.6.2
- old
+ new
@@ -77,17 +77,21 @@
Twurl.options.path = extract_path!(arguments)
Twurl.options.subcommands = arguments
Twurl.options
end
+ def print(*args, &block)
+ output.print(*args, &block)
+ end
+
def puts(*args, &block)
output.puts(*args, &block)
end
def prompt_for(label)
system "stty -echo"
- print "#{label}: "
+ CLI.print "#{label}: "
result = STDIN.gets.chomp
CLI.puts
result
rescue Interrupt
exit
@@ -253,6 +257,6 @@
def host
super || DEFAULT_HOST
end
end
-end
\ No newline at end of file
+end