Sha256: 7ea9841c6ea4c96b1c98b50555c50bf434f03251afe5f5f41e7be7958bfbdd9b
Contents?: true
Size: 897 Bytes
Versions: 16
Compression:
Stored size: 897 Bytes
Contents
#!/usr/bin/env ruby root_path = File.expand_path(File.dirname(__FILE__)) + '/..' require 'rubygems' unless Object.const_defined?(:Gem) require root_path +'/lib/bonethug' #----------------------------------- # require 'io/console' # list = Bonethug::CLI.tasks.sort # word = "" # while (char = $stdin.getch) != "\r" # word += char # word = "" if char == " " # if char == "\t" # list.each do |task| # print task if task[0..word.length-1] == word # end # else # print char # end # end # puts #----------------------------------- # require 'readline' # list = Bonethug::CLI.tasks.sort # comp = proc { |s| list.grep(/^#{Regexp.escape(s)}/) } # Readline.completion_append_character = " " # Readline.completion_proc = comp # while line = Readline.readline('> ', true) # p line # end Bonethug::CLI.handle 'thug'
Version data entries
16 entries across 16 versions & 1 rubygems