Class: LLM::Shell::Command::Help

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/llm/shell/commands/help.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ LLM::Shell::Command::Help

Parameters:

  • context (LLM::Shell::Context)

    The context of the command



12
13
14
# File 'lib/llm/shell/commands/help.rb', line 12

def initialize(context)
  @context = context
end

Instance Method Details

#callvoid

This method returns an undefined value.

Prints help



19
20
21
22
23
24
# File 'lib/llm/shell/commands/help.rb', line 19

def call
  pager do |io|
    render_commands(io)
    render_functions(io)
  end
end