register_command
Method
This is a method of the HookRegistry class in the registry module.Register a shell command as a hook.
Signature
Parameters
HookEvent
required
The event to hook
str
required
The shell command to execute
Optional[str]
Optional regex pattern to match targets
Optional[str]
Optional name for the hook
Optional[str]
Optional description
bool
default:"False"
Whether to run sequentially
float
default:"60.0"
Timeout in seconds
Optional
Additional environment variables
bool
default:"True"
Whether to run in shell mode
Returns
str
The hook ID
Uses
CommandHookregister
Source
View on GitHub
praisonaiagents/hooks/registry.py at line 120
