Skip to content

Engine Runtime (CLI)

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 --debug
fn main() -> anyhow::Result<()>

The main function for the PAI-OS Engine.

This function can return the following errors:

  • Result<()>: A result indicating success or failure.
  • EngineError(String): An error with a message.

The command line arguments for the PAI-OS Engine.

  • config: The path to the configuration file.
  • debug: Enable verbose logging.
struct Args {
pub config: Option<String>,
pub debug: bool,
}