Raxol.Plugins.Manager.Hooks (Raxol v0.5.0)

View Source

Handles plugin hook execution. Provides functions for running various plugin hooks and collecting their results.

Summary

Functions

Runs a specific hook on all enabled plugins. Returns {:ok, updated_manager, results} where results is a list of hook results.

Runs render-related hooks for all enabled plugins. Collects any direct output commands (e.g., escape sequences) returned by plugins. Returns {:ok, updated_manager, list_of_output_commands}

Functions

run_hook(manager, hook_name, args \\ [])

Runs a specific hook on all enabled plugins. Returns {:ok, updated_manager, results} where results is a list of hook results.

run_render_hooks(manager)

Runs render-related hooks for all enabled plugins. Collects any direct output commands (e.g., escape sequences) returned by plugins. Returns {:ok, updated_manager, list_of_output_commands}