Sha256: b909dd8639abb08c98202574bb3f89da78f3f54e45c35f6ce4d4fc0a6816d2f3

Contents?: true

Size: 364 Bytes

Versions: 202

Compression:

Stored size: 364 Bytes

Contents

require_relative "line_editor/basic"
require_relative "line_editor/readline"

class Thor
  module LineEditor
    def self.readline(prompt, options = {})
      best_available.new(prompt, options).readline
    end

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

Version data entries

202 entries across 155 versions & 22 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/thor-1.3.2/lib/thor/line_editor.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/line_editor.rb
thor-1.3.2 lib/thor/line_editor.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/thor-1.3.1/lib/thor/line_editor.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/line_editor.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/line_editor.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/line_editor.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/line_editor.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
thor-1.3.1 lib/thor/line_editor.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb