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

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

Class Method Summary collapse

Methods included from T::Sig

sig

Methods included from ContextualResolver

aliases, command_class, command_names

Methods included from T::Helpers

#abstract!, #final!, #interface!, #mixes_in_class_methods, #sealed!

Class Method Details

.aliasesObject



48
49
50
# File 'lib/cli/kit/command_registry.rb', line 48

def aliases
  {}
end

.command_class(_name) ⇒ Object

Raises:



53
54
55
# File 'lib/cli/kit/command_registry.rb', line 53

def command_class(_name)
  raise(CLI::Kit::Abort, 'Cannot be called on the NullContextualResolver since command_names is empty')
end

.command_namesObject



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

def command_names
  []
end