Raxol.Terminal.Extension.ExtensionServer (Raxol v2.0.1)

View Source

Unified extension management GenServer that provides a single interface for loading, unloading, and managing terminal extensions.

Summary

Functions

Activates an extension.

Returns a specification to start this module under a supervisor.

Deactivates an extension.

Executes a command for an extension.

Exports an extension to a specified path.

Gets the configuration of an extension.

Gets all hooks for an extension.

Gets the state of a specific extension.

Gets all extensions, optionally filtered.

Imports an extension from a specified path.

Lists all loaded extensions with optional filters.

Loads an extension from the specified path.

Registers a hook for an extension.

Starts the UnifiedExtension server.

Triggers a hook for an extension.

Unloads an extension by ID.

Unregisters a hook for an extension.

Updates the configuration for an extension.

Functions

activate_extension(extension_id)

Activates an extension.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

configure_extension(extension_id, config)

Configures an extension.

deactivate_extension(extension_id)

Deactivates an extension.

execute_command(extension_id, command)

Executes a command for an extension.

execute_command(extension_id, command, args)

export_extension(extension_id, path)

Exports an extension to a specified path.

get_extension_config(extension_id)

Gets the configuration of an extension.

get_extension_hooks(extension_id)

Gets all hooks for an extension.

get_extension_state(extension_id)

Gets the state of a specific extension.

get_extensions(filters \\ [])

Gets all extensions, optionally filtered.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

import_extension(path)

Imports an extension from a specified path.

list_extensions(filters \\ [])

Lists all loaded extensions with optional filters.

load_extension(path, type, metadata)

Loads an extension from the specified path.

register_hook(extension_id, hook_name, callback)

Registers a hook for an extension.

start_extension_manager(opts \\ [])

Starts the UnifiedExtension server.

start_link(init_opts \\ [])

trigger_hook(extension_id, hook_name, args \\ [])

Triggers a hook for an extension.

unload_extension(extension_id)

Unloads an extension by ID.

unregister_hook(extension_id, hook_name)

Unregisters a hook for an extension.

update_extension_config(extension_id, config)

Updates the configuration for an extension.