module Thor::Util

def self.find_by_namespace(namespace)


namespace:: The namespace to search for.
==== Parameters

Receives a namespace and search for it in the Thor::Base subclasses.
def self.find_by_namespace(namespace)
  namespace = "default#{namespace}" if namespace.empty? || namespace =~ /^:/
  Thor::Base.subclasses.find { |klass| klass.namespace == namespace }
end