class Bundler::Thor::LineEditor::Basic
def self.available?
def self.available? true end
def echo?
def echo? options.fetch(:echo, true) end
def get_input
def get_input if echo? $stdin.gets else # Lazy-load io/console since it is gem-ified as of 2.3 require "io/console" $stdin.noecho(&:gets) end end
def initialize(prompt, options)
def initialize(prompt, options) @prompt = prompt @options = options end
def readline
def readline $stdout.print(prompt) get_input end