Engine Runtime (CLI)
paiOS Engine Runtime
Section titled “paiOS Engine Runtime”This is the main entry point for the paiOS Engine daemon (pai-engine binary from the engine/ workspace).
It handles CLI argument parsing, logging initialization, and placeholder bootstrap; adapter wiring will be added in later work.
./pai-engine --config path/to/config.toml --debugFunctions
Section titled “Functions”fn main() -> anyhow::Result<()>The main function for the paiOS Engine.
Errors
Section titled “Errors”This function returns anyhow::Result<()>; errors are logged and the process exits with a non-zero code on failure.
Structs
Section titled “Structs”The command line arguments for the paiOS Engine.
Fields
Section titled “Fields”config: The path to the configuration file.debug: Enable verbose logging.
struct Args { pub config: Option<String>, pub debug: bool,}