Class: ClaudeMemory::Commands::EmbeddingsCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/claude_memory/commands/embeddings_command.rb

Overview

Shows embedding configuration, lists available models, and validates setup.

Subcommands:

claude-memory embeddings          # Show current config
claude-memory embeddings list     # List available models
claude-memory embeddings check    # Validate current setup

Instance Attribute Summary

Attributes inherited from BaseCommand

#stderr, #stdin, #stdout

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from ClaudeMemory::Commands::BaseCommand

Instance Method Details

#call(args) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/claude_memory/commands/embeddings_command.rb', line 13

def call(args)
  opts = parse_options(args, {}) do |o|
    OptionParser.new do |parser|
      parser.banner = "Usage: claude-memory embeddings [list|check]"
    end
  end
  return 1 if opts.nil?

  subcommand = args.first

  case subcommand
  when "list" then list_models
  when "check" then check_setup
  when nil then show_config
  else
    failure("Unknown subcommand: #{subcommand}. Use: list, check")
  end
end