lib/gorails/commands.rb in gorails-0.1.2 vs lib/gorails/commands.rb in gorails-0.1.3
- old
+ new
@@ -1,12 +1,9 @@
require "gorails"
module Gorails
module Commands
- Registry = CLI::Kit::CommandRegistry.new(
- default: "help",
- contextual_resolver: nil
- )
+ Registry = CLI::Kit::CommandRegistry.new(default: "help")
def self.register(const, cmd, path)
autoload(const, path)
Registry.add(-> { const_get(const) }, cmd)
end