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-4.3.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/using_readline.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/using_readline.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/using_readline.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/using_readline.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/using_readline.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/using_readline.rb
highline-1.7.10 examples/using_readline.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
highline-2.0.0.pre.develop.9 examples/using_readline.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb