Class: LLM::Shell::Command::ShowVersion

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

Instance Method Summary collapse

Constructor Details

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

Parameters:

  • context (LLM::Shell::Context)

    The context of the command



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

def initialize(context)
  @context = context
end

Instance Method Details

#callvoid

This method returns an undefined value.

Shows the current llm-shell version



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

def call
  pager do |io|
    io.write("llm-shell version: #{LLM::Shell::VERSION}\n")
  end
end