module Thor::LineEditor

def self.best_available

def self.best_available
  [
    Thor::LineEditor::Readline,
    Thor::LineEditor::Basic
  ].detect(&:available?)
end

def self.readline(prompt, options={})

def self.readline(prompt, options={})
  best_available.new(prompt, options).readline
end