Module: CLI::Kit::CommandRegistry::NullContextualResolver
- Extended by:
- ContextualResolver
- Defined in:
- lib/cli/kit/command_registry.rb
Class Method Summary collapse
-
.aliases ⇒ Object
: -> Hash[String, String].
-
.command_class(_name) ⇒ Object
: (String _name) -> singleton(CLI::Kit::BaseCommand).
-
.command_names ⇒ Object
: -> Array.
Methods included from ContextualResolver
aliases, command_class, command_names
Class Method Details
.aliases ⇒ Object
: -> Hash[String, String]
49 50 51 |
# File 'lib/cli/kit/command_registry.rb', line 49 def aliases {} end |
.command_class(_name) ⇒ Object
: (String _name) -> singleton(CLI::Kit::BaseCommand)
55 56 57 |
# File 'lib/cli/kit/command_registry.rb', line 55 def command_class(_name) raise(CLI::Kit::Abort, 'Cannot be called on the NullContextualResolver since command_names is empty') end |
.command_names ⇒ Object
: -> Array
43 44 45 |
# File 'lib/cli/kit/command_registry.rb', line 43 def command_names [] end |