Class: LLM::Shell::Command::ShowHistory

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

Instance Method Summary collapse

Constructor Details

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

Parameters:

  • context (LLM::Shell::Context)

    The context of the command



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

def initialize(context)
  @context = context
end

Instance Method Details

#callvoid

This method returns an undefined value.

Emits the full chat history to standard output



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

def call
  clear_screen
  emit
end