Class: Foobara::Command

Inherits:
Object
  • Object
show all
Includes:
CommandPatternImplementation
Defined in:
foobara-0.1.16/projects/command/src/command.rb,
foobara-0.1.16/projects/command/src/state_machine.rb,
foobara-0.1.16/projects/command/lib/foobara/command.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, RemoteCommand, RemoteImports::ImportCommand, RemoteImports::ImportDomain, RemoteImports::ImportError, RemoteImports::ImportOrganization, RemoteImports::ImportType

Defined Under Namespace

Classes: StateMachine

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary

Attributes included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#is_subcommand

Attributes included from Foobara::CommandPatternImplementation::Concerns::Runtime

#exception, #outcome, #raw_result

Attributes included from Foobara::CommandPatternImplementation::Concerns::Errors

#error_collection

Attributes included from Foobara::CommandPatternImplementation::Concerns::Inputs

#inputs, #raw_inputs

Class Method Summary collapse

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Methods included from Foobara::CommandPatternImplementation::Concerns::DomainMappers

#domain_map, #domain_map!, #run_mapped_subcommand!

Methods included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#subcommand?

Methods included from Foobara::CommandPatternImplementation::Concerns::Entities

#load_entities, #load_records

Methods included from Foobara::CommandPatternImplementation::Concerns::Transactions

#relevant_entity_classes

Methods included from NestedTransactionable

#auto_detect_current_transactions, #commit_transaction, #commit_transaction_if_open, #open_transaction, #opened_transactions, #relevant_entity_classes, relevant_entity_classes_for_type, #relevant_entity_classes_for_type, #rollback_transaction, #transactions, #use_transaction, with_needed_transactions_for_type

Methods included from Foobara::CommandPatternImplementation::Concerns::StateMachine

#state_machine

Methods included from Foobara::CommandPatternImplementation::Concerns::Callbacks

#state_machine_callback_registry

Methods included from Foobara::CommandPatternImplementation::Concerns::Runtime

#halt!, #run, #run!, #success?

Methods included from Foobara::CommandPatternImplementation::Concerns::Errors

#has_errors?, #initialize

Methods included from Foobara::CommandPatternImplementation::Concerns::Inputs

#cast_and_validate_inputs, #initialize, #method_missing, #respond_to_missing?, #respond_to_missing_for_inputs?

Methods included from Foobara::CommandPatternImplementation::Concerns::ResultType

#result_type

Methods included from Foobara::CommandPatternImplementation::Concerns::InputsType

#inputs_type

Methods included from TruncatedInspect

#inspect, truncating

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::CommandPatternImplementation::Concerns::Inputs

Class Method Details

.install!Object



7
8
9
# File 'foobara-0.1.16/projects/command/lib/foobara/command.rb', line 7

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