Skip to main content

Module bootstrap

Module bootstrap 

Source
Expand description

Application bootstrap and run-mode dispatch.

Owns: log init, app building (settings → custom providers → router → tools → WASM), and run-mode dispatch (TUI / print / RPC).

The helper functions below are moved verbatim from main.rs and retain their original signatures.

Functions§

build_app
Build a wired App from CLI args. All the wiring that used to be inline in main() lives here.
dispatch_run_mode
Dispatch the run mode: TUI / print / RPC, based on the CLI flags.
init_logging
Initialize file-based logging to ~/.cache/oxi/oxi.log.
run_with_args
Parse args, build the app, dispatch.