Sha256: 9ad7ecc4d67373fcb42391948cf475e48b624ffd8157bd67c622d03bc134a785

Contents?: true

Size: 367 Bytes

Versions: 83

Compression:

Stored size: 367 Bytes

Contents

#!/usr/bin/env ruby

# using_readline.rb
#
#  Created by James Edward Gray II on 2005-07-06.
#  Copyright 2005 Gray Productions. All rights reserved.

require "rubygems"
require "highline/import"

loop do
  cmd = ask("Enter command:  ", %w{save sample load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

Version data entries

83 entries across 73 versions & 11 rubygems

Version Path
brakeman-3.3.5 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
windows-pr-1.2.5 vendor/bundle/ruby/2.2.0/gems/win32-api-1.6.0-universal-mingw32/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
win32-api-1.6.0-universal-mingw32 vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
highline-2.0.0.pre.develop.6 examples/using_readline.rb
highline-2.0.0.pre.develop.4 examples/using_readline.rb
highline-2.0.0.pre.develop.2 examples/using_readline.rb
highline-1.7.8 examples/using_readline.rb
highline-1.7.7 examples/using_readline.rb
highline-1.7.6 examples/using_readline.rb
highline-1.7.5 examples/using_readline.rb
highline-1.7.3 examples/using_readline.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/highline-1.6.21/examples/using_readline.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/highline-1.6.21/examples/using_readline.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/highline-1.7.2/examples/using_readline.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/highline-1.6.21/examples/using_readline.rb