Expand description
Plugin and Extension System
Provides a mechanism for extending RAPS CLI with external commands and hooks.
§Plugin Types
- External Command Plugins: Executables named
raps-<name>in PATH - Workflow Hooks: Pre/post command hooks for automation
- Custom Command Groups: User-defined command aliases and groups
§Plugin Discovery
External plugins are discovered by searching PATH for executables matching:
- Windows:
raps-<name>.exe - Unix:
raps-<name>
§Configuration
Plugins are configured in ~/.config/raps/plugins.json:
{
"plugins": {
"my-plugin": {
"enabled": true,
"path": "/path/to/raps-my-plugin"
}
},
"hooks": {
"pre_upload": ["echo 'Starting upload'"],
"post_translate": ["notify-send 'Translation complete'"]
},
"aliases": {
"quick-upload": "object upload --resume"
}
}Structs§
- Discovered
Plugin - Discovered plugin information
- Plugin
Config - Plugin configuration
- Plugin
Entry - Individual plugin entry
- Plugin
Manager - Plugin manager for discovering and executing plugins
- Plugin
Verify Result - Result of verifying a plugin’s integrity
Functions§
- compute_
binary_ hash - Compute SHA-256 hash of a file