Sha256: 6b57f9aa65fe9457ff184723bdb0c97da43817d6835dd1bab2612fd7ea43783f

Contents?: true

Size: 365 Bytes

Versions: 31

Compression:

Stored size: 365 Bytes

Contents

#!/usr/local/bin/ruby -w

# 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 load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
radiant-0.6.3 vendor/highline/examples/using_readline.rb
radiant-0.6.2 vendor/highline/examples/using_readline.rb
radiant-0.6.5.1 vendor/highline/examples/using_readline.rb
radiant-0.6.4 vendor/highline/examples/using_readline.rb
radiant-0.6.5 vendor/highline/examples/using_readline.rb
radiant-0.6.6 vendor/highline/examples/using_readline.rb
radiant-0.6.7 vendor/highline/examples/using_readline.rb
radiant-0.6.8 vendor/highline/examples/using_readline.rb
radiant-0.6.9 vendor/highline/examples/using_readline.rb
radiant-0.7.0 vendor/highline/examples/using_readline.rb
radiant-0.7.1 vendor/highline/examples/using_readline.rb