Class: Foobara::Command

Inherits:
Object
  • Object
show all
Includes:
CommandPatternImplementation
Defined in:
foobara-0.6.1/projects/command/src/command.rb,
foobara-0.6.1/projects/command/src/state_machine.rb,
foobara-0.6.1/projects/command/lib/foobara/command.rb,
foobara-0.6.1/projects/command/src/extensions/domain/domain_module_extension_extension.rb

Direct Known Subclasses

Agent::AccomplishGoal, Agent::DescribeCommand, Agent::DescribeType, Agent::GiveUp, Agent::ListCommands, Agent::NotifyUserThatCurrentGoalHasBeenAccomplished, Ai::AnswerBot::Ask, Ai::AnswerBot::GenerateNextMessage, Ai::AnswerBot::ListModels, Ai::AnthropicApi::BaseCommand, Ai::OllamaApi::BaseCommand, Ai::OpenAiApi::BaseCommand, Auth::ApproveToken, Auth::AuthenticateWithApiKey, Auth::BuildAccessToken, Auth::BuildSecret, Auth::CreateApiKey, Auth::CreateRefreshToken, Auth::CreateResetPasswordToken, Auth::CreateRole, Auth::CreateToken, Auth::CreateUser, Auth::DeleteApiKey, Auth::FindUser, Auth::GetApiKeySummaries, Auth::Login, Auth::Logout, Auth::RefreshLogin, Auth::Register, Auth::ResetPassword, Auth::SetPassword, Auth::VerifyAccessToken, Auth::VerifyPassword, Auth::VerifySecret, Auth::VerifyToken, Autocrud::AutocrudCommand, Autocrud::CreateCommands, Foobara::CommandConnector::Commands::Describe, Foobara::CommandConnector::Commands::ListCommands, Foobara::CommandConnector::Commands::Ping, Foobara::CommandConnector::Commands::QueryGitCommitInfo, Foobara::CommandConnectors::Http::Commands::GetOptions, Foobara::CommandConnectors::Http::Commands::Help, Foobara::CommandConnectors::ShCliConnector::Commands::Help, Generators::Generate, Generators::WriteGeneratedFilesToDisk, LlmBackedCommand, McpConnector::Commands::Initialize, McpConnector::Commands::Noop, Query, RemoteCommand, RemoteImports::ImportCommand, RemoteImports::ImportDomain, RemoteImports::ImportError, RemoteImports::ImportOrganization, RemoteImports::ImportType

Defined Under Namespace

Modules: DomainModuleExtensionExtension Classes: StateMachine

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Class Method Summary collapse

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Class Method Details

.install!Object



6
7
8
9
10
11
12
# File 'projects/command/lib/foobara/command.rb', line 6

def install!
  Namespace.global.foobara_add_category_for_subclass_of(:command, self)

  Domain::DomainModuleExtension::ClassMethods.prepend(
    DomainModuleExtensionExtension::ClassMethods
  )
end