Class: LLM::Console::Command::Help
- Inherits:
-
LLM::Console::Command
- Object
- LLM::Console::Command
- LLM::Console::Command::Help
- Defined in:
- lib/llm/console/commands/help.rb
Instance Attribute Summary
Attributes inherited from LLM::Console::Command
Instance Method Summary collapse
Methods inherited from LLM::Console::Command
complete, #complete, description, find_by, help, inherited, #initialize, name, parameter, #parameters, parameters, registry, required, #write, #write_message
Constructor Details
This class inherits a constructor from LLM::Console::Command
Instance Method Details
#call(name: nil)
This method returns an undefined value.
12 13 14 15 16 17 18 19 20 |
# File 'lib/llm/console/commands/help.rb', line 12 def call(name: nil) if name.nil? write(self.class.help) elsif command = LLM::Console::Command.find_by(name:) write(command.help) else write "no help for #{name} was found" end end |