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

Version Path
bonethug-0.0.99 bin/thug
bonethug-0.0.98 bin/thug
bonethug-0.0.97 bin/thug
bonethug-0.0.96 bin/thug
bonethug-0.0.95 bin/thug
bonethug-0.0.93 bin/thug
bonethug-0.0.92 bin/thug
bonethug-0.0.91 bin/thug
bonethug-0.0.90 bin/thug
bonethug-0.0.89 bin/thug
bonethug-0.0.88 bin/thug
bonethug-0.0.87 bin/thug
bonethug-0.0.86 bin/thug
bonethug-0.0.85 bin/thug
bonethug-0.0.84 bin/thug
bonethug-0.0.83 bin/thug