Module: CLI::Kit::CommandRegistry::NullContextualResolver

Extended by:
ContextualResolver
Defined in:
lib/cli/kit/command_registry.rb

Class Method Summary collapse

Methods included from ContextualResolver

aliases, command_class, command_names

Class Method Details

.aliasesObject

: -> 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)

Raises:



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_namesObject

: -> Array



43
44
45
# File 'lib/cli/kit/command_registry.rb', line 43

def command_names
  []
end