lib/gator/command.rb in gator-0.0.6.pre vs lib/gator/command.rb in gator-0.0.7.pre

- old
+ new

@@ -1,9 +1,19 @@ +require File.dirname(__FILE__) + '/runner' + +module Gator + class Command < Thor + def self.register_command( name, usage, description, mappings=[], options={} ) + Gator::Runner.register self, name, usage,description,options + Gator::Runner.map mappings => name + end + end +end \ No newline at end of file