//! Pattern 1: Embedded CLI
//!
//! Lua source is compiled into the binary via `include_str!`.
//! No .lua files needed at runtime — behaves like a normal CLI.
//!
//! Usage:
//!   cargo run --example embedded_cli -- greet World
//!   cargo run --example embedded_cli -- greet --loud World
//!   cargo run --example embedded_cli -- version

use senl::SenlApp;
use std::process;

fn main() {
    let code = SenlApp::from_source("hello", include_str!("hello.lua"))
        .run()
        .unwrap_or_else(|e| {
            eprintln!("{e}");
            process::exit(1);
        });
    process::exit(code);
}
