mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
This is a follow-up to https://github.com/openai/codex/pull/15922. That previous PR deleted the old `tui` directory and left the new `tui_app_server` directory in place. This PR renames `tui_app_server` to `tui` and fixes up all references.
16 lines
358 B
Rust
16 lines
358 B
Rust
use std::io::Read;
|
|
use std::io::{self};
|
|
|
|
fn main() {
|
|
let mut input = String::new();
|
|
if let Err(err) = io::stdin().read_to_string(&mut input) {
|
|
eprintln!("failed to read stdin: {err}");
|
|
std::process::exit(1);
|
|
}
|
|
|
|
let parser = pulldown_cmark::Parser::new(&input);
|
|
for event in parser {
|
|
println!("{event:?}");
|
|
}
|
|
}
|