Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust
340 B
Raw Blame
use std::io::Write;

fn main() {
    println!("WINE_TEST_READY");
    std::io::stdout().flush().expect("flush readiness marker");

    if std::env::args().any(|arg| arg == "--fail") {
        std::process::exit(9);
    }
    if std::env::args().any(|arg| arg == "--wait") {
        loop {
            std::thread::park();
        }
    }
}