| .. | |||||
| actions | |||||
| core_ext | |||||
| line_editor | |||||
| parser | |||||
| shell | |||||
| actions.rb | |||||
| base.rb | |||||
| command.rb | |||||
| error.rb | |||||
| group.rb | |||||
| invocation.rb | |||||
| line_editor.rb | |||||
| nested_context.rb | |||||
| parser.rb | |||||
| rake_compat.rb | |||||
| runner.rb | |||||
| shell.rb | |||||
| util.rb | |||||
| version.rb |
require_relative "line_editor/basic"
require_relative "line_editor/readline"
class Bundler::Thor
module LineEditor
def self.readline(prompt, options = {})
best_available.new(prompt, options).readline
end
def self.best_available
[
Bundler::Thor::LineEditor::Readline,
Bundler::Thor::LineEditor::Basic
].detect(&:available?)
end
end
end
| .. | |||||
| actions | |||||
| core_ext | |||||
| line_editor | |||||
| parser | |||||
| shell | |||||
| actions.rb | |||||
| base.rb | |||||
| command.rb | |||||
| error.rb | |||||
| group.rb | |||||
| invocation.rb | |||||
| line_editor.rb | |||||
| nested_context.rb | |||||
| parser.rb | |||||
| rake_compat.rb | |||||
| runner.rb | |||||
| shell.rb | |||||
| util.rb | |||||
| version.rb |