Expand description
Process-global service initialization for CLI startup.
This submodule owns the side effects that must happen before any command is dispatched: tracing setup, database initialization, and runtime cleanup. Keeping these steps here makes the startup contract explicit and prevents them from being mixed into config loading or command dispatch.
The order is deliberate:
crate::services::bootstrap::logging::initmust run first so later failures can be written to the console and file sink.crate::database::initseeds the process-wide connection state used by command handlers and cleanup routines.crate::services::bootstrap::init_runtimeinstalls Ctrl+C handling and replays bootstrap cleanup, which depends on the database already being available.
Functionsยง
- init ๐
- Initialize the global services required for a fully hydrated CLI process.