Engine Runtime (CLI)
PAI-OS Engine Runtime
Section titled “PAI-OS Engine Runtime”This is the main entry point for the PAI-OS Engine daemon. It handles CLI argument parsing, logging initialization, and boots the core engine library.
./pai-engine --config path/to/config.toml --debugFunctions
Section titled “Functions”fn main() -> anyhow::Result<()>The main function for the PAI-OS Engine.
Errors
Section titled “Errors”This function can return the following errors:
Result<()>: A result indicating success or failure.EngineError(String): An error with a message.
Structs
Section titled “Structs”The command line arguments for the PAI-OS 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,}