Module: D2::Commands
- Defined in:
- lib/d2/commands.rb,
lib/d2/commands/cd.rb,
lib/d2/commands/help.rb,
lib/d2/commands/clone.rb,
lib/d2/commands/config.rb
Defined Under Namespace
Classes: Cd, Clone, Config, Help
Constant Summary collapse
- Registry =
CLI::Kit::CommandRegistry.new( default: 'help', contextual_resolver: nil )
Class Method Summary collapse
Class Method Details
.register(const, cmd, path) ⇒ Object
10 11 12 13 |
# File 'lib/d2/commands.rb', line 10 def self.register(const, cmd, path) autoload(const, path) Registry.add(->() { const_get(const) }, cmd) end |