class Thor::Runner
def thorfiles_relevant_to(meth)
namespaces registered.
will load all thor files in the thor.yaml that has "foo" e "foo:bar"
Load Thorfiles relevant to the given method. If you provide "foo:bar" it
def thorfiles_relevant_to(meth) lookup = [meth, meth.split(":")[0...-1].join(":")] files = thor_yaml.select do |_, v| v[:namespaces] && !(v[:namespaces] & lookup).empty? end files.map { |_, v| File.join(thor_root, (v[:filename]).to_s) } end