Raxol.Core.Runtime.Lifecycle (Raxol v2.0.1)
View SourceManages the application lifecycle, including startup, shutdown, and terminal interaction.
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the application name for a given module.
Initializes the runtime environment. (Stub for test compatibility)
Starts a Raxol application (compatibility wrapper).
Starts and links a new Raxol application lifecycle manager.
Stops the Raxol application lifecycle manager.
pid_or_name can be the PID or the registered name of the Lifecycle GenServer.
Stops a Raxol application (compatibility wrapper).
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Gets the application name for a given module.
Initializes the runtime environment. (Stub for test compatibility)
Starts a Raxol application (compatibility wrapper).
Starts and links a new Raxol application lifecycle manager.
Options
:app_module- Required application module atom.:name- Optional name for registering the GenServer. If not provided, a namewill be derived from `app_module`.:width- Terminal width (default: 80).:height- Terminal height (default: 24).:debug- Enable debug mode (default: false).:initial_commands- A list ofRaxol.Core.Runtime.Commandstructs to execute on startup.:plugin_manager_opts- Options to pass to the PluginManager's start_link function.- Other options are passed to the application module's
init/1function.
Stops the Raxol application lifecycle manager.
pid_or_name can be the PID or the registered name of the Lifecycle GenServer.
Stops a Raxol application (compatibility wrapper).