Method: Rodish::DSL#autoload_subcommand_dir

Defined in:
lib/rodish/dsl.rb

#autoload_subcommand_dir(dir) ⇒ Object

Autoload subcommands from the given directory. Filenames ending in .rb in this directory should be valid subcommands, and requiring the related file should load the subcommand.

You can use this so that your argv parser does not need to load code not needed to support processing the command.



69
70
71
# File 'lib/rodish/dsl.rb', line 69

def autoload_subcommand_dir(dir)
  _autoload_subcommand_dir(@command.subcommands, dir)
end