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
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.52 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.50 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.49 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.48 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.47 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.46 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.45 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.44 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.43 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.42 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.41 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.39 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb
harbr-0.1.38 vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/line_editor.rb