Module: LicenseFinder::CLI::Rootcommand

Included in:
Main
Defined in:
lib/license_finder/cli/patched_thor.rb

Instance Method Summary collapse

Instance Method Details

#subcommand(namespace, klass, namespace_description) ⇒ Object

Helper to auto-generate the documentation for a group of commands



5
6
7
8
9
# File 'lib/license_finder/cli/patched_thor.rb', line 5

def subcommand(namespace, klass, namespace_description)
  description = "#{namespace} [#{(klass.tasks.keys - ["help"]).join("|")}]"
  desc description, "#{namespace_description} - see `license_finder #{namespace} help` for more information"
  super namespace, klass
end