Sha256: 14774dafc5233b8e9ed169fba78e2fc75258b6fc7f11b9184f61121f3fad6c04

Contents?: true

Size: 901 Bytes

Versions: 16

Compression:

Stored size: 901 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 'bonethug'

Version data entries

16 entries across 16 versions & 1 rubygems

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